jeremyharris / cakephp-lazyload

A lazy loader for CakePHP entities.
MIT License
61 stars 10 forks source link

No support for get() method #8

Closed robertpustulka closed 7 years ago

robertpustulka commented 7 years ago

A trait seems to be overloading __get() magic method which is just a wrapper for get() 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).

jeremyharris commented 7 years ago

Thanks for reporting! I'll get on this in a couple of weeks when I get back from vacation :)

robertpustulka commented 7 years ago

Thanks!

jeremyharris commented 7 years ago

No problem. It's not in a release yet, but you can use it with dev-master.