GenericClassMetadata
class GenericClassMetadata extends ArrayObject implements ClassMetadata (View source)
Minimalistice ClassMetadata implementation
Traits
Properties
| $idGenerator | ID generator-compatible class | from IdGeneratorTypeClassnameTrait | |
| array | $customGeneratorDefinition | from IdGeneratorTypeClassnameTrait | |
| array | $lifecycleCallbacks | from LifecycleCallbackClassMetadataTrait |
Methods
No description
No description
No description
Indicates if a field is part of the class.
Indicates if the given field is an identifier field.
Get the given field type name
Base implementation of a mapField function
Indicates if assiciation targets a single value.
Indicates is association targets multiple values.
Implements ClassMetadata interface.
MDoctrine ORM compatibility.
Indicates if the given field has an association with another entity field.
Get associated field class.
Get association mapped target.
Set class field mapping
No description
Indicates if object has a lifecycle callback for the given event name
Set the object lifecycle callback for ghe given event.
No description
Store key value to the ArrayObject
No description
No description
No description
Silently do nothing
{@inheritdoc}
{@inheritdoc}
Details
setIdGeneratorType(string|IdGeneratorInterface $type)
setCustomGeneratorDefinition(array $definition)
ReflectionService
getReflectionService()
setReflection(ReflectionService $reflectionService)
initializeReflection(ReflectionService $reflectionService)
mixed[]
getIdentifierValues(object $object)
setIdentifierValues(object $object, mixed[] $generatedValues)
string[]
getFieldNames()
Get all field names.
Implements ClassMetadata interface.
boolean
hasField(string $fieldName)
Indicates if a field is part of the class.
Implements ClassMetadata interface.
array|mixed[]
getIdentifierFieldNames()
Get identifier fields.
Implements interface of ClassMetadata
array|mixed[]
getIdentifier()
Get identifier field names.
Implements ClassMetadata interface.
isIdentifier(string $fieldName)
Indicates if the given field is an identifier field.
Implements ClassMetadata interface.
string
getTypeOfField(string $fieldName)
Get the given field type name
Implements ClassMetadata interface.
mapField(array $mapping)
Implements ClassMetadata interface.
addInheritedFieldMapping(array $mapping)
array
getFieldMapping(string $fieldName)
Get raw field mapping
array
getFieldMappings()
protected
defaultMapField(array $mapping)
Base implementation of a mapField function
protected
defaultAddInheritedFieldMapping(array $mapping)
string[]
getAssociationNames()
Get association names.
Implements ClassMetadata interface.
boolean
isSingleValuedAssociation(string $fieldName)
Indicates if assiciation targets a single value.
Implements ClassMetadata interface.
boolean
isCollectionValuedAssociation(string $fieldName)
Indicates is association targets multiple values.
Implements ClassMetadata interface.
boolean
isAssociationInverseSide(string $associationName)
Implements ClassMetadata interface.
"inspired" by Doctrin ORM implementation.
mapManyToMany(array $mapping)
MDoctrine ORM compatibility.
mapManyToOne(array $mapping)
Doctrine ORM compatibility.
mapOneToMany(array $mapping)
Doctrine ORM compatibility.
mapOneToOne(array $mapping)
Doctrine ORM compatibility.
getAssociationMapping(string $fieldName)
boolean
hasAssociation(string $fieldName)
Indicates if the given field has an association with another entity field.
Implements ClassMetadata interface.
mixed|string|array|Traversable
getAssociationTargetClass(string $associationName)
Get associated field class.
Implements ClassMetadata interface.
array
getAssociationMappings()
string
getAssociationMappedByTargetField(string $associationName)
Get association mapped target.
Implements ClassMetadata interface.
addInheritedAssociationMapping(array $mapping)
Set class field mapping
protected
defaultMapAssociation($mapping)
protected
defaultAddInheritedAssociationMapping(array $mapping)
boolean
hasLifecycleCallbacks(string $event)
Indicates if object has a lifecycle callback for the given event name
addLifecycleCallback(string $event, string $method)
Set the object lifecycle callback for ghe given event.
at line 37
__construct(string $className)
at line 50
__set(string $key, mixed $value)
Store key value to the ArrayObject
at line 61
string|mixed
__get(string $key)
at line 73
offsetSet($index, $value)
at line 96
offsetGet($index)
at line 122
__call(string $method, array $arguments)
Silently do nothing
at line 132
getName()
{@inheritdoc}
at line 142
getReflectionClass()
{@inheritdoc}