Mvc\Model\Manager

Class Phalcon\Mvc\Model\Manager

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

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

$di = new Phalcon\DI();

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

 $robot = new Robots($di);

Methods

登录查看完整内容