Exemplo n.º 1
0
 /**
  * Initialize document from array
  *
  * @param array $array Data
  *
  * @return \Gc\Document\Model
  */
 public static function fromArray(array $array)
 {
     $documentTable = new Model();
     $documentTable->setData($array);
     $documentTable->setOrigData();
     return $documentTable;
 }