Mvc\Collection\Document

Class Phalcon\Mvc\Collection\Document

implements ArrayAccess

This component allows Phalcon\Mvc\Collection to return rows without an associated entity. This objects implements the ArrayAccess interface to allow access the object as object->x or array[x].

Methods

public boolean offsetExists (int $index)

Checks whether an offset exists in the document

public mixed offsetGet (string $index)

Returns the value of a field using the ArrayAccess interfase

public offsetSet (string $index, Phalcon\Mvc\ModelInterface $value)

Change a value using t