I'm working with the ORM framework of coldfusion and found an error I cannot get past. I found another stackoverflow thread stating that you can use duplicate on a entityNew()
object. This works perfectly. I can save the object as a new row, and it's a nice duplicate. BUT when I do the exact same thing while it's an existing entity. It gives an error. "failed to lazily initialize a collection". I tried everything with entityReload
and entityMerge
. Entitymerge
just overwrites the other object (while using forseinsert
on entitySave
???)
So I think something is not working right here. Can somebody point me in the right direction why this error is occuring? Thanks in advance!