Ryan Albrecht
02/24/2022, 9:49 PMOnce this is defined, any new BookMedia entity will be saved with a type value of book in the media table. As such, the following query will result in only entities of BookMedia being returned:
however this does not seem to be the case. It seems you have to explicitly set the discriminator property before saving. Is this the expected behavior? Reading the docs it seems like this should be done implicitly for you.elpete
02/25/2022, 2:53 PMRyan Albrecht
02/25/2022, 3:11 PMRyan Albrecht
02/25/2022, 3:11 PMRyan Albrecht
02/25/2022, 4:00 PMgetInstance('Forward').asMemento().get();
parent: Trade.cfc https://pastebin.com/PhLAfe36
child: Forward.cfc https://pastebin.com/HHxfy1PQRyan Albrecht
02/28/2022, 9:11 PM