コード例 #1
0
ファイル: ORM.php プロジェクト: spruce-bruce/entity
 /**
  * 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;
 }
コード例 #2
0
 public function find()
 {
     $this->_check_scope_deleted();
     $this->_check_scope_published();
     $result = parent::find();
     $this->after_find();
     return $result;
 }