Mvc\Collection\Manager::getConnection

public Mongo getConnection (Phalcon\Mvc\CollectionInterface $model) Returns the connection related to a model

Mvc\Collection\Manager::addBehavior

public addBehavior (Phalcon\Mvc\CollectionInterface $model, Phalcon\Mvc\Collection\BehaviorInterface $behavior) Binds a behavior to a model

Mvc\Collection\Manager

implements Phalcon\Di\InjectionAwareInterface, Phalcon\Events\EventsAwareInterface Source on GitHub 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 pu

Mvc\Collection\Exception

extends class Phalcon\Exception implements Throwable Source on GitHub Methods final private Exception __clone () inherited from Exception Clone the exception public __construct ([string $message], [int $code], [Exception $previous]) inherited from Exception Exception constructor public __wakeup () inherited from Exception ... final public string getMessage () inherited from Exception Gets the Exception message final public int getCode () inherited from Exception Gets the Exception code fin

Mvc\Collection\Document::writeAttribute

public writeAttribute (string $attribute, mixed $value) Writes an attribute value by its name $robot->writeAttribute('name', 'Rosey');

Mvc\Collection\Document::toArray

public array toArray () Returns the instance as an array representation

Mvc\Collection\Document::readAttribute

public mixed readAttribute (string $attribute) Reads an attribute value by its name echo $robot->readAttribute('name');

Mvc\Collection\Document::offsetUnset

public offsetUnset (string $offset) Rows cannot be changed. It has only been implemented to meet the definition of the ArrayAccess interface

Mvc\Collection\Document::offsetSet

public offsetSet (mixed $index, mixed $value) Change a value using the ArrayAccess interface

Mvc\Collection\Document::offsetGet

public offsetGet (mixed $index) Returns the value of a field using the ArrayAccess interfase