Mvc\Collection\Manager

Class Phalcon\Mvc\Collection\Manager

implements Phalcon\DI\InjectionAwareInterface, Phalcon\Events\EventsAwareInterface, Phalcon\Mvc\Collection\ManagerInterface

This components controls the initialization of models, keeping record of relations between the different models of the application. A CollectionManager is injected to a model via a Dependency Injector Container such as Phalcon\DI.

$di = new Phalcon\DI();

 $di->set('collectionManager', function(){
      return new Phalcon\Mvc\Collection\Manager();
 });

 $robot = new Robots($di);

Methods

登录查看完整内容