Mvc\Collection\Manager::getConnection

public Mongo getConnection (Phalcon\Mvc\CollectionInterface $model) Returns the connection related 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\Manager::addBehavior

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

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::toArray

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

Mvc\Collection\Document::offsetSet

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

Mvc\Collection\Document::offsetExists

public boolean offsetExists (int $index) Checks whether an offset exists in the document

Mvc\Collection\Document::writeAttribute

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

Mvc\Collection\Document::offsetGet

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

Mvc\Collection\Document::readAttribute

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