phalcon.eager-loading icon indicating copy to clipboard operation
phalcon.eager-loading copied to clipboard

Added EagerResultset; Added {alias}_eager property

Open josefguenther opened this issue 9 years ago • 2 comments

Changes on 5.3 branch ONLY. Consider porting to master.

Added EagerResultset to help identify and work with result array; now adds {alias}_eager property on models to help determine if results were eager loaded (without triggering a magic fetch)

josefguenther avatar Oct 14 '15 18:10 josefguenther

Resultset needed in any case.

dvmedvedev avatar May 09 '16 11:05 dvmedvedev

@josefguenther I was triying to do the opposite, to check in model if relationship was loaded, without calling the lazy loading. But there is no luck that way.

https://github.com/phalcon/incubator/pull/754

Surt avatar Apr 06 '17 09:04 Surt