If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Auto-correct relationType when relationId 's type is different
Auto-correct relationType when relationId 's type is different
When modifying client code it may happen that parent type is not correctly set. I wouldn't want that mismatch to taint the database... A good idea would be to do type validation and (optionally) throw or self correct.