find_one() 공개 메소드

As a shortcut, you may supply an ID as a parameter to this method. This will perform a primary key lookup on the table.
public find_one ( $id = null )
예제 #1
0
파일: paris.php 프로젝트: florinp/dexonline
 /**
  * Wrap Idiorm's find_one method to return
  * an instance of the class associated with
  * this wrapper instead of the raw ORM class.
  *
  * @param  null|integer $id
  * @return Model
  */
 public function find_one($id = null)
 {
     return $this->_create_model_instance(parent::find_one($id));
 }