Closed robertpustulka closed 7 years ago
Yep, you're right about that. I'll work up a fix today. Thanks!
I probably released this a bit prematurely :D
@robertpustulka Would you mind pulling the release or master and check it against your use case? I wrote a failing test before the actual fix, so I think it'll be fine, but would feel better if you checked it out as well.
@jeremyharris I'll try it tomorrow :)
@jeremyharris it works :)
@robertpustulka fantastic, thanks for testing it!
Seems like #9 hasn't been fixed.
Consider this example again. This time group has been eager-loaded.
_lazyLoaded
hasn't noted that there'sgroup
already inside an entity. Now I unset it and lazy loader loads it again.Maybe
_lazyLoaded
should be notified that a property has been unset?This issue causes
TranslateBehavior
association loading to be stuck in a loop as_rowMapper
unset eagerly loaded association properties but lazy loader wants to load them again...Here is my temporary fix:
But maybe it could be done in a more elegant way.