implements 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 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
Gets a connection service for a specific model
Sets whether 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 an events-manager if available Notify the behaviors that are listening in the model
Dispatch an event to the listeners and behaviors This method expects that the endpoint listeners/behaviors returns true meaning that at least one was implemented
Binds a behavior to a model
© 2011–2017 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/latest/api/Phalcon_Mvc_Collection_Manager.html