Closed garyrichardson closed 14 years ago
I see the dilemma. However, loading an object after changes have been made without wiping out those changes could cause other problems. If you changed your before_save code to use if('insert' == $state) rather than if(null == $this->createTime) then everything should work as you intended. I don't really see a better solution, perhaps an exception should be thrown if lazy loading is triggered while unsaved changes exist to prevent this kind of confusion? Thanks for the issue report.
Closing
Hi,
I think I've found an issue with lazy loading. I have the following code:
And I get the following output:
So to recap:
Thanks!