phalcon.eager-loading
phalcon.eager-loading copied to clipboard
Added EagerResultset; Added {alias}_eager property
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)
Resultset needed in any case.
@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