This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I have a huge problem with deleting entities. 2 Tables, Master and Detail. Detail table has composite primary key (composed from Id and MasterId). And the problem is, that during deleting row, regardless what options are set on relation level exception is thrown: Field '_masterId' defined on type 'TestLightSpeedCascadeDelete.DetailTableId' is not a field on the target object which is of type 'TestLightSpeedCascadeDelete.DetailTable'. This error occurs during call UnitOfWork.Remove().
This error doesn't occur if fields are of type The only workaround to avoid it is to not load before referenced rows (but it is not acceptable for us). In attachment sample showing this problem. It also contains database script to create tables and rows used in sample (MindscapeSample.sql). Please check this behaviour and advice something, at the moment it is blocking issue for us. Regards Rafal |
|
|
Thanks for reporting this and for the repro project. This was a bug related to handling re-assigning the updated value back to the composite key object after unwiring. I have added a fix for this and we are aiming to have this merged in to the nightlies shortly, Ill update this once the fix has been merged in.
|
|
|
This has now been merged in so the fix will be available in the next nightly build for you.
|
|