PHPackages                             talentify/phalcon.eager-loading - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. talentify/phalcon.eager-loading

ActiveLibrary[Database &amp; ORM](/categories/database)

talentify/phalcon.eager-loading
===============================

Solves N+1 query problem in Phalcon Model

4.1.1(3y ago)09.9kUnlicensePHPPHP &gt;=7.1

Since Apr 28Pushed 2w ago5 watchersCompare

[ Source](https://github.com/Talentify/phalcon.eager-loading)[ Packagist](https://packagist.org/packages/talentify/phalcon.eager-loading)[ RSS](/packages/talentify-phalconeager-loading/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (5)Used By (0)

This package provides eager-loading support for Phalcon 1.3.\* - 2.0.\*. Requires PHP 5.6, for PHP 5.3 support use *php-5.3* branch

Phalcon 3.3 supported

Usage
-----

[](#usage)

The usage is similar to Laravel, I've implemented in a trait `with` and `load` methods, so within a model that uses that trait (`Sb\Framework\Mvc\Model\EagerLoadingTrait`) you can do:

```
