Beispiel #1
0
 /**
  * Get Model from array
  *
  * @param array $array Data
  *
  * @return Model
  */
 public static function fromArray(array $array)
 {
     $datatypeTable = new Model();
     $datatypeTable->setData($array);
     $datatypeTable->setOrigData();
     return $datatypeTable;
 }