/**
  * Select ONE entity from the database using it's primary key
  * 
  * @param string $cls Class to load
  * @param mixed $pk primary key value
  * @return object entity of class $cls
  */
 public function load($cls, $pk)
 {
     return $this->mapper->load($cls, $pk);
 }
示例#2
0
 /**
  * Select ONE entity from the database using it's primary key
  * 
  * @param $clazz
  * @param $pk
  * @return unknown_type
  */
 public function load($clazz, $pk)
 {
     return OutletMapper::load($clazz, $pk);
 }