try { $doctrineMetadata =
$this->entityManager->
getClassMetadata($className);
} catch (MappingException|OrmMappingException
) { return false;
} if (!
$doctrineMetadata instanceof ClassMetadataInfo
) { return false;
} $loaded = false;
$enabledForClass =
$this->
isAutoMappingEnabledForClass($metadata,
$this->classValidatorRegexp
);
/* Available keys:
- type
- scale
- length
- unique
- nullable
- precision
*/
$existingUniqueFields =
$this->
getExistingUniqueFields($metadata);