InterviewSolution
Saved Bookmarks
| 1. |
Why Did I Get This "cannot Find Entity With Id X" Error With My [entityfield] After I Deleted It? |
|
Answer» That's because by default EntityField is using Session.LOAD() to load the entity for you. If you delete the entity, you need to RESET that FIELD to null, if you WANT to save this trouble, you can use [EntityFieldDeletionSafe] instead, it's basically the same EXCEPT that it's using Session.Get(). That's because by default EntityField is using Session.Load() to load the entity for you. If you delete the entity, you need to reset that field to null, if you want to save this trouble, you can use [EntityFieldDeletionSafe] instead, it's basically the same except that it's using Session.Get(). |
|