Use ColumnSecurity for remaing part properties.

This commit is contained in:
Jan Böhmer 2019-03-20 22:30:03 +01:00
parent 47fe76b22e
commit b5fecee465
2 changed files with 35 additions and 1 deletions

View file

@ -68,7 +68,7 @@ class ColumnSecurity
/**
* @var string The name of the property. This is used to determine the default placeholder.
* @Annotation\Enum({"integer", "string", "object"})
* @Annotation\Enum({"integer", "string", "object", "boolean", "datetime"})
*/
public $type = 'string';
@ -101,6 +101,11 @@ class ColumnSecurity
return '???';
case 'object':
return null;
case 'boolean':
return false;
case 'datetime':
$date = new \DateTime();
return $date->setTimestamp(0);
}
}