PHP Class Doctrine\ODM\PHPCR\Mapping\ClassMetadata

Since: 1.0
Author: Benjamin Eberlei ([email protected])
Author: Lukas Kahwe Smith ([email protected])
Author: Jonathan H. Wage ([email protected])
Author: Roman Borschel ([email protected])
Author: David Buchmann ([email protected])
Author: Daniel Barsotti ([email protected])
Inheritance: implements Doctrine\Common\Persistence\Mapping\ClassMetadata
Afficher le fichier Open project: doctrine/phpcr-odm Class Usage Examples

Méthodes publiques

Свойство Type Description
$childClasses array If empty then any classes are permitted.
$childMappings array READ-ONLY: The child mappings of the class.
$childrenMappings array READ-ONLY: The children mappings of the class.
$customRepositoryClassName string (Optional).
$depthMapping string READ-ONLY: Name of the depth property
$fieldMappings array READ-ONLY: The field mappings of the class.
$idGenerator READ-ONLY: The ID generator used for generating IDs for this class.
$identifier READ-ONLY: The field name of the document identifier.
$inheritMixins boolean READ-ONLY: Inherit parent class' mixins (default) or not
$isLeaf boolean READ-ONLY: If the document should be act as a leaf-node and therefore not be allowed children.
$isMappedSuperclass boolean READ-ONLY: Whether this class describes the mapping of a mapped superclass.
$lifecycleCallbacks array READ-ONLY: The registered lifecycle callbacks for documents of this class.
$localeMapping string READ-ONLY: Name of the locale property
$mappings array Keys are field names and values are mapping definitions. The mapping definition array has the following values: - fieldName (string) The name of the field in the Document. - id (boolean, optional) Marks the field as the primary key of the document.
$mixedReferrersMappings array READ-ONLY: The mixed referrers (read only) mappings of the class.
$mixins array READ-ONLY: The JCR Mixins to be used for this node (including inherited mixins)
$name READ-ONLY: The name of the document class that is stored in the phpcr:class property
$namespace string READ-ONLY: The namespace the document class is contained in.
$node string READ-ONLY: The field name of the node
$nodeType string READ-ONLY: The JCR Nodetype to be used for this node
$nodename string READ-ONLY except on document creation: The field name for the name of the node.
$parentClasses array READ-ONLY: Mapped parent classes.
$parentMapping string READ-ONLY except on document creation: The field name for the parent document.
$referenceMappings array READ-ONLY: The reference mappings of the class.
$referenceable boolean READ-ONLY: determines if the document is referenceable or not
$referrersMappings array READ-ONLY: The referrers mappings of the class.
$reflClass ReflectionClass The ReflectionClass instance of the mapped class.
$reflFields ReflectionPropert\ReflectionProperty[] READ-ONLY: The ReflectionProperty instances of the mapped class.
$translatableFields array READ-ONLY: List of translatable fields
$translator string This is the key used for DocumentManagerInterface::getTranslationStrategy
$uniqueNodeType boolean READ-ONLY: If true, consider this document's node type to be unique among all mappings.
$uuidFieldName READ-ONLY: The field name of the UUID field
$versionCreatedField string READ-ONLY: Name of the version created property of this document
$versionNameField string READ-ONLY: Name of the version name property of this document
$versionable boolean | string READ-ONLY: Whether this document should be versioned. If this is not false, it will be one of the values from self::validVersionableAnnotations

Protected Properties

Свойство Type Description
$validVersionableAnnotations

Méthodes publiques

Méthode Description
__construct ( string $className ) Initializes a new ClassMetadata instance that will hold the object-document mapping metadata of the class with the given name.
__sleep ( ) : array Determines which fields get serialized.
addLifecycleCallback ( string $callback, string $event ) Adds a lifecycle callback for documents of this class.
assertValidChildClass ( ClassMetadata $class ) Assert that the given class FQN can be a child of the document this metadata represents.
fullyQualifiedClassName ( string $className ) : string
getAssociation ( $fieldName ) : array
getAssociationMappedByTargetField ( $assocName ) {@inheritDoc}
getAssociationNames ( ) {@inheritDoc}
getAssociationTargetClass ( $fieldName ) {@inheritDoc}
getChildClasses ( ) : string[] Return the class names or interfaces that children of this document must be an instance of.
getField ( $fieldName ) {@inheritDoc}
getFieldMapping ( string $fieldName ) : array Gets the mapping of a (regular) field that holds some data but not a reference to another object.
getFieldNames ( ) {@inheritDoc}
getFieldValue ( object $document, string $field ) : mixed | null Gets the specified field's value off the given document.
getIdentifier ( ) {@inheritDoc}
getIdentifierFieldNames ( ) : array Get identifier field names of this class.
getIdentifierValue ( object $document ) : string Gets the document identifier.
getIdentifierValues ( object $document ) : array Get identifier values of this document.
getInheritMixins ( ) : boolean Return whether to inherit mixins from parent
getLifecycleCallbacks ( string $event ) : array Gets the registered lifecycle callbacks for an event.
getMixins ( ) : array Return the JCR mixins to be used for this node.
getName ( ) {@inheritDoc}
getNamespace ( ) : string The namespace this Document class belongs to.
getNodeType ( ) : string Return the JCR node type to be used for this node.
getParentClasses ( ) : array Return the mapped parent classes
getReflectionClass ( ) {@inheritDoc}
getReflectionProperties ( ) : array Gets the ReflectionProperties of the mapped class.
getReflectionProperty ( string $name ) : ReflectionProperty Gets a ReflectionProperty for a specific field of the mapped class.
getTypeOfField ( $fieldName ) {@inheritDoc}
getUuidFieldName ( )
hasAssociation ( $fieldName ) {@inheritDoc}
hasField ( $fieldName ) {@inheritDoc}
hasLifecycleCallbacks ( string $lifecycleEvent ) : boolean Whether the class has any attached lifecycle listeners or callbacks for a lifecycle event.
hasUniqueNodeType ( ) : boolean Return true if this document has a unique node type among all mappings.
initializeReflection ( Doctrine\Common\Persistence\Mapping\ReflectionService $reflService ) Initializes a new ClassMetadata instance that will hold the object-relational mapping metadata of the class with the given name.
invokeLifecycleCallbacks ( string $lifecycleEvent, object $document, array $arguments = null ) Dispatches the lifecycle event of the given document to the registered lifecycle callbacks and lifecycle listeners.
isAssociationInverseSide ( $assocName ) {@inheritDoc}
isCollectionValuedAssociation ( $fieldName ) {@inheritDoc}
isIdGeneratorNone ( ) : boolean Checks whether the class uses no id generator.
isIdGeneratorRepository ( ) : boolean Checks whether the class will generate an id via the repository.
isIdentifier ( $fieldName ) {@inheritDoc}
isInheritedField ( $fieldName ) : boolean Checks whether a mapped field is inherited from an entity superclass.
isLeaf ( ) : boolean Return true if this is designated as a leaf node.
isNullable ( string $fieldName ) : boolean Check if the field is nullable or not.
isSingleValuedAssociation ( $fieldName ) {@inheritDoc}
isUuid ( string $fieldName ) : boolean Whether $fieldName is the universally unique identifier of the document.
isValidNodename ( string $nodeName ) : PHPCR\RepositoryException | null Check if this node name is valid. Returns null if valid, an exception otherwise.
mapChild ( array $mapping, ClassMetadata $inherited = null )
mapChildren ( array $mapping, ClassMetadata $inherited = null )
mapDepth ( array $mapping, ClassMetadata $inherited = null )
mapField ( array $mapping, ClassMetadata $inherited = null ) Map a field.
mapId ( array $mapping, ClassMetadata $inherited = null )
mapLifecycleCallbacks ( array $mapping )
mapLocale ( array $mapping, ClassMetadata $inherited = null )
mapManyToMany ( $mapping, ClassMetadata $inherited = null )
mapManyToOne ( $mapping, ClassMetadata $inherited = null )
mapMixedReferrers ( array $mapping, ClassMetadata $inherited = null )
mapNode ( array $mapping, ClassMetadata $inherited = null )
mapNodename ( array $mapping, ClassMetadata $inherited = null )
mapParentDocument ( array $mapping, ClassMetadata $inherited = null )
mapReferrers ( array $mapping, ClassMetadata $inherited = null )
mapVersionCreated ( array $mapping, ClassMetadata $inherited = null )
mapVersionName ( array $mapping, ClassMetadata $inherited = null )
newInstance ( ) : object Creates a new instance of the mapped class, without invoking the constructor.
setChildClasses ( array $childClasses ) Set the class names or interfaces that children of this document must be instance of.
setCustomRepositoryClassName ( string $repositoryClassName ) Registers a custom repository class for the document class.
setFieldValue ( object $document, string $field, mixed $value ) Sets the specified field to the specified value on the given document.
setIdentifier ( string $identifier ) INTERNAL: Sets the mapped identifier field of this class.
setIdentifierValue ( object $document, mixed $id ) Sets the document identifier of a document.
setInheritMixins ( boolean $inheritMixins ) Set whether to inherit mixins from parent
setIsLeaf ( boolean $isLeaf ) Set if this document should act as a leaf node.
setLifecycleCallbacks ( array $callbacks ) Sets the lifecycle callbacks for documents of this class.
setMixins ( array $mixins ) Set the JCR mixins
setNodeType ( string $nodeType )
setParentClasses ( array $parentClasses ) Set the mapped parent classes
setReferenceable ( boolean $referenceable )
setTranslator ( $translator ) Sets the translator strategy key
setUniqueNodeType ( boolean $uniqueNodeType )
setVersioned ( string | boolean $versionable )
validateChildClasses ( ) Validate that childClasses is empty if isLeaf is true.
validateClassMapping ( ) Finalize the mapping and make sure that it is consistent.
validateIdentifier ( ) Validate Identifier mapping, determine the strategy if none is explicitly set.
validateLifecycleCallbacks ( Doctrine\Common\Persistence\Mapping\ReflectionService $reflService ) Validate lifecycle callbacks
validateReferenceable ( ) Validate whether this class needs to be referenceable.
validateReferences ( ) Validate association targets actually exist.
validateTranslatables ( ) Validate translatable fields - ensure that the document has a translator strategy in place.
wakeupReflection ( Doctrine\Common\Persistence\Mapping\ReflectionService $reflService ) Restores some state that can not be serialized/unserialized.

Méthodes protégées

Méthode Description
setIdGenerator ( string $generator ) Sets the ID generator used to generate IDs for instances of this class.
validateAndCompleteAssociationMapping ( $mapping, ClassMetadata $inherited = null, $phpcrLabel = 'property' )
validateAndCompleteFieldMapping ( array $mapping, ClassMetadata $inherited = null, boolean $isField = true, string $phpcrLabel = 'property' ) : mixed

Private Methods

Méthode Description
determineIdStrategy ( ) Determine the id strategy for this document. Only call this if no explicit strategy was assigned.

Method Details

__construct() public méthode

Initializes a new ClassMetadata instance that will hold the object-document mapping metadata of the class with the given name.
public __construct ( string $className )
$className string The name of the document class the new instance is used for.

__sleep() public méthode

It is only serialized what is necessary for best unserialization performance. That means any metadata properties that are not set or empty or simply have their default value are NOT serialized. Parts that are also NOT serialized because they can not be properly unserialized: - reflClass (ReflectionClass) - reflFields (ReflectionProperty array)
public __sleep ( ) : array
Résultat array The names of all the fields that should be serialized.

addLifecycleCallback() public méthode

Note: If the same callback is registered more than once, the old one will be overridden.
public addLifecycleCallback ( string $callback, string $event )
$callback string
$event string

assertValidChildClass() public méthode

Assert that the given class FQN can be a child of the document this metadata represents.
public assertValidChildClass ( ClassMetadata $class )
$class ClassMetadata

fullyQualifiedClassName() public méthode

public fullyQualifiedClassName ( string $className ) : string
$className string
Résultat string

getAssociation() public méthode

public getAssociation ( $fieldName ) : array
Résultat array the association mapping with the field of this name

getAssociationMappedByTargetField() public méthode

{@inheritDoc}
public getAssociationMappedByTargetField ( $assocName )

getAssociationNames() public méthode

{@inheritDoc}
public getAssociationNames ( )

getAssociationTargetClass() public méthode

{@inheritDoc}
public getAssociationTargetClass ( $fieldName )

getChildClasses() public méthode

Return the class names or interfaces that children of this document must be an instance of.
public getChildClasses ( ) : string[]
Résultat string[]

getField() public méthode

{@inheritDoc}
Deprecation: use getFieldMapping instead
public getField ( $fieldName )

getFieldMapping() public méthode

Gets the mapping of a (regular) field that holds some data but not a reference to another object.
public getFieldMapping ( string $fieldName ) : array
$fieldName string The field name.
Résultat array The field mapping.

getFieldNames() public méthode

{@inheritDoc}
public getFieldNames ( )

getFieldValue() public méthode

Gets the specified field's value off the given document.
public getFieldValue ( object $document, string $field ) : mixed | null
$document object the document to get the field from
$field string the name of the field
Résultat mixed | null the value of this field for the document or null if not found

getIdentifier() public méthode

{@inheritDoc}
public getIdentifier ( )

getIdentifierFieldNames() public méthode

Since PHPCR only allows exactly one identifier field this is a proxy to {@see \getIdentifier()} and returns an array.
public getIdentifierFieldNames ( ) : array
Résultat array

getIdentifierValue() public méthode

Gets the document identifier.
public getIdentifierValue ( object $document ) : string
$document object
Résultat string $id

getIdentifierValues() public méthode

Since PHPCR only allows exactly one identifier field this is a proxy to {@see \getIdentifierValue()} and returns an array with the identifier field as a key. If there is no identifier mapped, returns an empty array as per the specification.
public getIdentifierValues ( object $document ) : array
$document object
Résultat array

getInheritMixins() public méthode

Return whether to inherit mixins from parent
public getInheritMixins ( ) : boolean
Résultat boolean

getLifecycleCallbacks() public méthode

Gets the registered lifecycle callbacks for an event.
public getLifecycleCallbacks ( string $event ) : array
$event string
Résultat array

getMixins() public méthode

Return the JCR mixins to be used for this node.
public getMixins ( ) : array
Résultat array

getName() public méthode

{@inheritDoc}
public getName ( )

getNamespace() public méthode

The namespace this Document class belongs to.
public getNamespace ( ) : string
Résultat string $namespace The namespace name.

getNodeType() public méthode

Return the JCR node type to be used for this node.
public getNodeType ( ) : string
Résultat string

getParentClasses() public méthode

Return the mapped parent classes
public getParentClasses ( ) : array
Résultat array of mapped class FQNs

getReflectionClass() public méthode

{@inheritDoc}
public getReflectionClass ( )

getReflectionProperties() public méthode

Gets the ReflectionProperties of the mapped class.
public getReflectionProperties ( ) : array
Résultat array An array of \ReflectionProperty instances.

getReflectionProperty() public méthode

Gets a ReflectionProperty for a specific field of the mapped class.
public getReflectionProperty ( string $name ) : ReflectionProperty
$name string
Résultat ReflectionProperty

getTypeOfField() public méthode

{@inheritDoc}
public getTypeOfField ( $fieldName )

getUuidFieldName() public méthode

public getUuidFieldName ( )

hasAssociation() public méthode

{@inheritDoc}
public hasAssociation ( $fieldName )

hasField() public méthode

{@inheritDoc}
public hasField ( $fieldName )

hasLifecycleCallbacks() public méthode

Whether the class has any attached lifecycle listeners or callbacks for a lifecycle event.
public hasLifecycleCallbacks ( string $lifecycleEvent ) : boolean
$lifecycleEvent string
Résultat boolean

hasUniqueNodeType() public méthode

Return true if this document has a unique node type among all mappings.
public hasUniqueNodeType ( ) : boolean
Résultat boolean

initializeReflection() public méthode

Initializes a new ClassMetadata instance that will hold the object-relational mapping metadata of the class with the given name.
public initializeReflection ( Doctrine\Common\Persistence\Mapping\ReflectionService $reflService )
$reflService Doctrine\Common\Persistence\Mapping\ReflectionService

invokeLifecycleCallbacks() public méthode

Dispatches the lifecycle event of the given document to the registered lifecycle callbacks and lifecycle listeners.
public invokeLifecycleCallbacks ( string $lifecycleEvent, object $document, array $arguments = null )
$lifecycleEvent string The lifecycle event.
$document object The Document on which the event occurred.
$arguments array the arguments to pass to the callback

isAssociationInverseSide() public méthode

{@inheritDoc}
public isAssociationInverseSide ( $assocName )

isCollectionValuedAssociation() public méthode

{@inheritDoc}
public isCollectionValuedAssociation ( $fieldName )

isIdGeneratorNone() public méthode

Checks whether the class uses no id generator.
public isIdGeneratorNone ( ) : boolean
Résultat boolean TRUE if the class does not use any id generator, FALSE otherwise.

isIdGeneratorRepository() public méthode

Checks whether the class will generate an id via the repository.
public isIdGeneratorRepository ( ) : boolean
Résultat boolean TRUE if the class uses the Repository generator, FALSE otherwise.

isIdentifier() public méthode

{@inheritDoc}
public isIdentifier ( $fieldName )

isInheritedField() public méthode

Checks whether a mapped field is inherited from an entity superclass.
public isInheritedField ( $fieldName ) : boolean
Résultat boolean string class name if the field is inherited, FALSE otherwise.

isLeaf() public méthode

Return true if this is designated as a leaf node.
public isLeaf ( ) : boolean
Résultat boolean

isNullable() public méthode

Check if the field is nullable or not.
public isNullable ( string $fieldName ) : boolean
$fieldName string The field name
Résultat boolean TRUE if the field is nullable, FALSE otherwise.

isSingleValuedAssociation() public méthode

{@inheritDoc}
public isSingleValuedAssociation ( $fieldName )

isUuid() public méthode

Whether $fieldName is the universally unique identifier of the document.
public isUuid ( string $fieldName ) : boolean
$fieldName string
Résultat boolean True if $fieldName is mapped as the uuid, false otherwise.

isValidNodename() public méthode

Check if this node name is valid. Returns null if valid, an exception otherwise.
public isValidNodename ( string $nodeName ) : PHPCR\RepositoryException | null
$nodeName string The node local name
Résultat PHPCR\RepositoryException | null

mapChild() public méthode

public mapChild ( array $mapping, ClassMetadata $inherited = null )
$mapping array
$inherited ClassMetadata

mapChildren() public méthode

public mapChildren ( array $mapping, ClassMetadata $inherited = null )
$mapping array
$inherited ClassMetadata

mapDepth() public méthode

public mapDepth ( array $mapping, ClassMetadata $inherited = null )
$mapping array
$inherited ClassMetadata

mapField() public méthode

- type - The Doctrine Type of this field. - fieldName - The name of the property/field on the mapped php class - name - The Property key of this field in the PHPCR document - id - True for an ID field.
public mapField ( array $mapping, ClassMetadata $inherited = null )
$mapping array The mapping information.
$inherited ClassMetadata

mapId() public méthode

public mapId ( array $mapping, ClassMetadata $inherited = null )
$mapping array
$inherited ClassMetadata

mapLifecycleCallbacks() public méthode

public mapLifecycleCallbacks ( array $mapping )
$mapping array

mapLocale() public méthode

public mapLocale ( array $mapping, ClassMetadata $inherited = null )
$mapping array
$inherited ClassMetadata

mapManyToMany() public méthode

public mapManyToMany ( $mapping, ClassMetadata $inherited = null )
$inherited ClassMetadata

mapManyToOne() public méthode

public mapManyToOne ( $mapping, ClassMetadata $inherited = null )
$inherited ClassMetadata

mapMixedReferrers() public méthode

public mapMixedReferrers ( array $mapping, ClassMetadata $inherited = null )
$mapping array
$inherited ClassMetadata

mapNode() public méthode

public mapNode ( array $mapping, ClassMetadata $inherited = null )
$mapping array
$inherited ClassMetadata

mapNodename() public méthode

public mapNodename ( array $mapping, ClassMetadata $inherited = null )
$mapping array
$inherited ClassMetadata

mapParentDocument() public méthode

public mapParentDocument ( array $mapping, ClassMetadata $inherited = null )
$mapping array
$inherited ClassMetadata

mapReferrers() public méthode

public mapReferrers ( array $mapping, ClassMetadata $inherited = null )
$mapping array
$inherited ClassMetadata

mapVersionCreated() public méthode

public mapVersionCreated ( array $mapping, ClassMetadata $inherited = null )
$mapping array
$inherited ClassMetadata

mapVersionName() public méthode

public mapVersionName ( array $mapping, ClassMetadata $inherited = null )
$mapping array
$inherited ClassMetadata

newInstance() public méthode

Creates a new instance of the mapped class, without invoking the constructor.
public newInstance ( ) : object
Résultat object

setChildClasses() public méthode

Set the class names or interfaces that children of this document must be instance of.
public setChildClasses ( array $childClasses )
$childClasses array

setCustomRepositoryClassName() public méthode

Registers a custom repository class for the document class.
public setCustomRepositoryClassName ( string $repositoryClassName )
$repositoryClassName string The class name of the custom repository.

setFieldValue() public méthode

Sets the specified field to the specified value on the given document.
public setFieldValue ( object $document, string $field, mixed $value )
$document object
$field string
$value mixed

setIdGenerator() protected méthode

Sets the ID generator used to generate IDs for instances of this class.
protected setIdGenerator ( string $generator )
$generator string

setIdentifier() public méthode

INTERNAL: Sets the mapped identifier field of this class.
public setIdentifier ( string $identifier )
$identifier string

setIdentifierValue() public méthode

Sets the document identifier of a document.
public setIdentifierValue ( object $document, mixed $id )
$document object
$id mixed

setInheritMixins() public méthode

Set whether to inherit mixins from parent
public setInheritMixins ( boolean $inheritMixins )
$inheritMixins boolean

setIsLeaf() public méthode

Set if this document should act as a leaf node.
public setIsLeaf ( boolean $isLeaf )
$isLeaf boolean

setLifecycleCallbacks() public méthode

Any previously registered callbacks are overwritten.
public setLifecycleCallbacks ( array $callbacks )
$callbacks array

setMixins() public méthode

Set the JCR mixins
public setMixins ( array $mixins )
$mixins array

setNodeType() public méthode

public setNodeType ( string $nodeType )
$nodeType string

setParentClasses() public méthode

Set the mapped parent classes
public setParentClasses ( array $parentClasses )
$parentClasses array

setReferenceable() public méthode

public setReferenceable ( boolean $referenceable )
$referenceable boolean

setTranslator() public méthode

Sets the translator strategy key
public setTranslator ( $translator )

setUniqueNodeType() public méthode

public setUniqueNodeType ( boolean $uniqueNodeType )
$uniqueNodeType boolean

setVersioned() public méthode

public setVersioned ( string | boolean $versionable )
$versionable string | boolean A valid versionable annotation or false to disable versioning.

validateAndCompleteAssociationMapping() protected méthode

protected validateAndCompleteAssociationMapping ( $mapping, ClassMetadata $inherited = null, $phpcrLabel = 'property' )
$inherited ClassMetadata

validateAndCompleteFieldMapping() protected méthode

protected validateAndCompleteFieldMapping ( array $mapping, ClassMetadata $inherited = null, boolean $isField = true, string $phpcrLabel = 'property' ) : mixed
$mapping array
$inherited ClassMetadata same field of parent document, if any
$isField boolean whether this is a field or an association
$phpcrLabel string the name for the phpcr thing. usually property, except for child where this is name. referrers use false to not set anything.
Résultat mixed

validateChildClasses() public méthode

Validate that childClasses is empty if isLeaf is true.

validateClassMapping() public méthode

Finalize the mapping and make sure that it is consistent.

validateIdentifier() public méthode

Validate Identifier mapping, determine the strategy if none is explicitly set.
public validateIdentifier ( )

validateLifecycleCallbacks() public méthode

Validate lifecycle callbacks
public validateLifecycleCallbacks ( Doctrine\Common\Persistence\Mapping\ReflectionService $reflService )
$reflService Doctrine\Common\Persistence\Mapping\ReflectionService

validateReferenceable() public méthode

The document needs to be either referenceable or full versionable. Simple versioning does not imply referenceable.

validateReferences() public méthode

Validate association targets actually exist.
public validateReferences ( )

validateTranslatables() public méthode

Validate translatable fields - ensure that the document has a translator strategy in place.

wakeupReflection() public méthode

Restores some state that can not be serialized/unserialized.
public wakeupReflection ( Doctrine\Common\Persistence\Mapping\ReflectionService $reflService )
$reflService Doctrine\Common\Persistence\Mapping\ReflectionService

Property Details

$childClasses public_oe property

If empty then any classes are permitted.
public array $childClasses
Résultat array

$childMappings public_oe property

READ-ONLY: The child mappings of the class.
public array $childMappings
Résultat array

$childrenMappings public_oe property

READ-ONLY: The children mappings of the class.
public array $childrenMappings
Résultat array

$customRepositoryClassName public_oe property

(Optional).
public string $customRepositoryClassName
Résultat string

$depthMapping public_oe property

READ-ONLY: Name of the depth property
public string $depthMapping
Résultat string

$fieldMappings public_oe property

READ-ONLY: The field mappings of the class.
public array $fieldMappings
Résultat array

$idGenerator public_oe property

READ-ONLY: The ID generator used for generating IDs for this class.
public $idGenerator

$identifier public_oe property

READ-ONLY: The field name of the document identifier.
public $identifier

$inheritMixins public_oe property

READ-ONLY: Inherit parent class' mixins (default) or not
public bool $inheritMixins
Résultat boolean

$isLeaf public_oe property

READ-ONLY: If the document should be act as a leaf-node and therefore not be allowed children.
public bool $isLeaf
Résultat boolean

$isMappedSuperclass public_oe property

READ-ONLY: Whether this class describes the mapping of a mapped superclass.
public bool $isMappedSuperclass
Résultat boolean

$lifecycleCallbacks public_oe property

READ-ONLY: The registered lifecycle callbacks for documents of this class.
public array $lifecycleCallbacks
Résultat array

$localeMapping public_oe property

READ-ONLY: Name of the locale property
public string $localeMapping
Résultat string

$mappings public_oe property

Keys are field names and values are mapping definitions. The mapping definition array has the following values: - fieldName (string) The name of the field in the Document. - id (boolean, optional) Marks the field as the primary key of the document.
public array $mappings
Résultat array

$mixedReferrersMappings public_oe property

READ-ONLY: The mixed referrers (read only) mappings of the class.
public array $mixedReferrersMappings
Résultat array

$mixins public_oe property

READ-ONLY: The JCR Mixins to be used for this node (including inherited mixins)
public array $mixins
Résultat array

$name public_oe property

READ-ONLY: The name of the document class that is stored in the phpcr:class property
public $name

$namespace public_oe property

READ-ONLY: The namespace the document class is contained in.
public string $namespace
Résultat string

$node public_oe property

READ-ONLY: The field name of the node
public string $node
Résultat string

$nodeType public_oe property

READ-ONLY: The JCR Nodetype to be used for this node
public string $nodeType
Résultat string

$nodename public_oe property

READ-ONLY except on document creation: The field name for the name of the node.
public string $nodename
Résultat string

$parentClasses public_oe property

READ-ONLY: Mapped parent classes.
public array $parentClasses
Résultat array

$parentMapping public_oe property

READ-ONLY except on document creation: The field name for the parent document.
public string $parentMapping
Résultat string

$referenceMappings public_oe property

READ-ONLY: The reference mappings of the class.
public array $referenceMappings
Résultat array

$referenceable public_oe property

READ-ONLY: determines if the document is referenceable or not
public bool $referenceable
Résultat boolean

$referrersMappings public_oe property

READ-ONLY: The referrers mappings of the class.
public array $referrersMappings
Résultat array

$reflClass public_oe property

The ReflectionClass instance of the mapped class.
public ReflectionClass $reflClass
Résultat ReflectionClass

$reflFields public_oe property

READ-ONLY: The ReflectionProperty instances of the mapped class.
public ReflectionProperty[],ReflectionPropert $reflFields
Résultat ReflectionPropert\ReflectionProperty[]

$translatableFields public_oe property

READ-ONLY: List of translatable fields
public array $translatableFields
Résultat array

$translator public_oe property

This is the key used for DocumentManagerInterface::getTranslationStrategy
public string $translator
Résultat string

$uniqueNodeType public_oe property

READ-ONLY: If true, consider this document's node type to be unique among all mappings.
public bool $uniqueNodeType
Résultat boolean

$uuidFieldName public_oe property

READ-ONLY: The field name of the UUID field
public $uuidFieldName

$validVersionableAnnotations protected_oe static_oe property

protected static $validVersionableAnnotations

$versionCreatedField public_oe property

READ-ONLY: Name of the version created property of this document
public string $versionCreatedField
Résultat string

$versionNameField public_oe property

READ-ONLY: Name of the version name property of this document
public string $versionNameField
Résultat string

$versionable public_oe property

READ-ONLY: Whether this document should be versioned. If this is not false, it will be one of the values from self::validVersionableAnnotations
public bool|string $versionable
Résultat boolean | string