Closed robertpustulka closed 7 years ago
A trait seems to be overloading __get() magic method which is just a wrapper for get() method.
__get()
get()
So... lazy loading through $entity->property works but it doesn't work with $entity->get('property') which is weird.
$entity->property
$entity->get('property')
I think this should be fixed unless it is done like that intentionally (although I couldn't figure out why).
Thanks for reporting! I'll get on this in a couple of weeks when I get back from vacation :)
Thanks!
No problem. It's not in a release yet, but you can use it with dev-master.
dev-master
A trait seems to be overloading
__get()
magic method which is just a wrapper forget()
method.So... lazy loading through
$entity->property
works but it doesn't work with$entity->get('property')
which is weird.I think this should be fixed unless it is done like that intentionally (although I couldn't figure out why).