ClassMetadataAdapter
class ClassMetadataAdapter (View source)
Compatibility layer across various ClassMetadata extension implementations.
Constants
| MAPPING_ID |
|
| MAPPING_FIELD_NAME |
|
| MAPPING_TYPE |
Field or association type |
| MAPPING_ONE_TO_ONE |
|
| MAPPING_MANY_TO_ONE |
|
| MAPPING_ONE_TO_MANY |
|
| MAPPING_MANY_TO_MANY |
|
| MAPPING_TO_ONE |
|
| MAPPING_TO_MANY |
|
| MAPPING_TARGET_CLASS |
|
Methods
No description
Indicate if class has a composite identifier
Indicates if class metadata has a valid ID generator
No description
Get ClassMetadata element or return default value
No description
Attempt to read ClassMetadata element by invoking a getter method or by getting a class property
No description
Attempt to set metadata element by invoking a method or by setting a property
Details
at line 55
static string
getFullyQualifiedClassName(string $className, ClassMetadata $fromMetadata = null)
at line 77
static boolean
isIdentifierComposite(ClassMetadata $metadata)
Indicate if class has a composite identifier
at line 89
static
hasIdGenerator(ClassMetadata $metadata)
Indicates if class metadata has a valid ID generator
at line 102
static IdGeneratorInterface|NULL
getIdGenerator(ClassMetadata $metadata)
at line 121
static mixed
getMetadataElement(ClassMetadata $metadata, string $name, mixed $dflt = null)
Get ClassMetadata element or return default value
at line 131
static
retrieveMetadataProperty($value, ClassMetadata $metadata, $name)
at line 157
static boolean
retrieveMetadataElement(mixed $value, ClassMetadata $metadata, string $name, mixed[] ...$arguments)
Attempt to read ClassMetadata element by invoking a getter method or by getting a class property
at line 170
static
invokeMetadataMethod($returned, ClassMetadata $metadata, $name, ...$arguments)
at line 192
static boolean
assignMetadataElement(ClassMetadata $metadata, string $name, mixed[] ...$arguments)
Attempt to set metadata element by invoking a method or by setting a property