Download the PHP package sowork/phalcon-eagerload without Composer
On this page you can find all versions of the php package sowork/phalcon-eagerload. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package phalcon-eagerload
phalcon-eagerload
允许phalcon进行数据预加载的扩展
安装
使用
- 在项目中注册
\Sowork\EagerLoad\EagerLoadServiceProvider::class
-
在Model中引入
Sowork\EagerLoad\Traits\EagerLoadingTrait
文件,并定义相对的关联关系 -
使用with()方法对数据进行预加载
- 使用load()方法对数据进行懒惰渴求式加载
返回结果
- 根据列表或者对象,分别会返回
Phalcon\Mvc\ModelInterface
或Tightenco\Collect\Support\Collection
对象
集合操作
当返回结果是一个集合时,更方便我们对数据结果进行处理,具体集合的操作方法请看相关文档
All versions of phalcon-eagerload with dependencies
PHP Build Version
Package Version
Requires
tightenco/collect Version
^6.0
The package sowork/phalcon-eagerload contains the following files
Loading the files please wait ....