DoctrineBehaviors icon indicating copy to clipboard operation
DoctrineBehaviors copied to clipboard

Fix #766: Ensure translatable is loaded when local variables are accessed

Open bobvandevijver opened this issue 1 year ago • 0 comments

The issue is that non-mapped properties ($currentLocale and $defaultLocale) are marked as excluded by the lazy ghost as they are not mapped. Hitting these properties therefor no longer triggers database hydration, which causes the load event handler to not be run for the translatable if it wasn't fully loaded. Calling the load manually will trigger hydration and the load event listener, initialising these properties correctly.

bobvandevijver avatar Jun 11 '24 18:06 bobvandevijver