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);
Sets the DependencyInjector container
Returns the DependencyInjector container
Sets the event manager
Returns the internal event manager
Sets a custom events manager for a specific model
Returns a custom events manager related to a model
Initializes a model in the models manager
Check whether a model is already initialized
Get the latest initialized model
Sets a connection service for a specific model
Sets if a model must use implicit objects ids
Checks if a model is using implicit object ids
Returns the connection related to a model
Receives events generated in the models and dispatches them to a events-manager if available Notify the behaviors that are listening in the model
© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Mvc_Collection_Manager.html