Ejemplo n.º 1
0
Archivo: Dao.php Proyecto: pixlr/SZES
 protected function entityFromArray(array $values)
 {
     $object = false;
     if (!empty($values)) {
         $class = '\\Model\\' . \Util\Text::classNameOnly(get_called_class());
         $object = new $class();
         $object->fromArray($values);
     }
     return $object;
 }
Ejemplo n.º 2
0
 public function offsetUnset($dao_name)
 {
     unset($this->container[\Util\Text::classNameOnly($dao_name)]);
 }