Example #1
0
 /**
  * Gets the names of the hidden fields for this model
  * @param zibo\library\orm\model\Model $model Model of the data
  * @return array Array with the names of the hidden fields
  */
 protected function getHiddenFieldNames(Model $model)
 {
     $hiddenFields = array(ModelTable::PRIMARY_KEY);
     if ($model instanceof ExtendedModel) {
         $automaticFields = $model->getAutomaticFields();
         foreach ($automaticFields as $automaticField) {
             $hiddenFields[] = $automaticField;
         }
     }
     return $hiddenFields;
 }