tag:blogger.com,1999:blog-142015575677144593.post6211376903307469955..comments2023-06-05T03:59:31.858-04:00Comments on Ramblings of an Internet MoFo: ColdFusion ORM: Computed Property GotchaNicholas Tunneyhttp://www.blogger.com/profile/04500115069703249854noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-142015575677144593.post-83912336579123860982012-06-05T10:38:09.777-04:002012-06-05T10:38:09.777-04:00Thanks for this post--helped me out a bunch!Thanks for this post--helped me out a bunch!Exist-Dissolvehttps://www.blogger.com/profile/17197236965102469206noreply@blogger.comtag:blogger.com,1999:blog-142015575677144593.post-81604480293451475862011-02-23T16:45:59.040-05:002011-02-23T16:45:59.040-05:00Great post Nic!
I ran into a problem not long ago...Great post Nic!<br /><br />I ran into a problem not long ago with entityReload() that might be worth mentioning.<br /><br />I was having lots of trouble updating an obj in an (application, not ORM) session using entityReload(). My unit tests for the model were a nice shade of green, but wrestling with the implementation was a pain!<br /><br />Unfortunately, I can't recall the exact problem/soln but tinkering with the cascade settings with using entityReload() did the trick.<br /><br />From the online CF9 documentation:<br /><br />Developing ColdFusion 9 Apps / ColdFusion ORM / Define ORM mapping / Define Relationships - Cascade Options:<br /><br />cascade="refresh" : Cascades the refresh action to the child object. The refresh action is used to reload an object and its collections<br /><br />my $.02<br /><br />- Ray VRay Vhttps://www.blogger.com/profile/12565555377381556875noreply@blogger.com