if ($metadata->
hasField($property)) { $typeOfField =
$metadata->
getTypeOfField($property);
if (!
$builtinType =
$this->
getPhpType($typeOfField)) { return null;
} $nullable =
$metadata instanceof ClassMetadataInfo &&
$metadata->
isNullable($property);
$enumType = null;
if (null !==
$enumClass =
$metadata->
getFieldMapping($property)['enumType'
] ?? null
) { $enumType =
new Type(Type::BUILTIN_TYPE_OBJECT,
$nullable,
$enumClass);
} switch ($builtinType) { case Type::BUILTIN_TYPE_OBJECT:
switch ($typeOfField) { case Types::DATE_MUTABLE:
case Types::DATETIME_MUTABLE:
case Types::DATETIMETZ_MUTABLE:
case 'vardatetime':
case Types::TIME_MUTABLE: