/** @access protected must be public because it is called from Row */ function __construct($table, NotORM_Result $result, $column, $active) { parent::__construct($table, $result->notORM); $this->result = $result; $this->column = $column; $this->active = $active; }
function __construct($table, ORM $notORM, $single = false, $where = array()) { parent::__construct($table, $notORM, $single); if (array_key_exists($notORM->structure->getPrimary($table), $where)) { $this->access = array($notORM->structure->getPrimary($table) => true); $this->notORM->__updateRowClass($table); $id = $where[$notORM->structure->getPrimary($table)]; $this->rows = [$id => new $this->notORM->rowClass($where, $this)]; $this->data = $this->rows; } }