/** * Finds and loads a single database row into the object. * * @return ORM or Entity */ public function find() { $res = parent::find(); if ($this->entity_exists()) { $res = $this->loaded() ? $this->entity($res) : false; } return $res; }
public function find() { $this->_check_scope_deleted(); $this->_check_scope_published(); $result = parent::find(); $this->after_find(); return $result; }