PHP Класс Doctrine\ODM\PHPCR\Mapping\ClassMetadata

С версии: 1.0
Автор: Benjamin Eberlei ([email protected])
Автор: Lukas Kahwe Smith ([email protected])
Автор: Jonathan H. Wage ([email protected])
Автор: Roman Borschel ([email protected])
Автор: David Buchmann ([email protected])
Автор: Daniel Barsotti ([email protected])
Наследование: implements Doctrine\Common\Persistence\Mapping\ClassMetadata
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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)

Свойство Тип Описание
$validVersionableAnnotations

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
determineIdStrategy ( ) Determine the id strategy for this document. Only call this if no explicit strategy was assigned.

Описание методов

__construct() публичный Метод

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() публичный Метод

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
Результат array The names of all the fields that should be serialized.

addLifecycleCallback() публичный Метод

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() публичный Метод

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

fullyQualifiedClassName() публичный Метод

public fullyQualifiedClassName ( string $className ) : string
$className string
Результат string

getAssociation() публичный Метод

public getAssociation ( $fieldName ) : array
Результат array the association mapping with the field of this name

getAssociationMappedByTargetField() публичный Метод

{@inheritDoc}
public getAssociationMappedByTargetField ( $assocName )

getAssociationNames() публичный Метод

{@inheritDoc}
public getAssociationNames ( )

getAssociationTargetClass() публичный Метод

{@inheritDoc}
public getAssociationTargetClass ( $fieldName )

getChildClasses() публичный Метод

Return the class names or interfaces that children of this document must be an instance of.
public getChildClasses ( ) : string[]
Результат string[]

getField() публичный Метод

{@inheritDoc}
Устаревший: use getFieldMapping instead
public getField ( $fieldName )

getFieldMapping() публичный Метод

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.
Результат array The field mapping.

getFieldNames() публичный Метод

{@inheritDoc}
public getFieldNames ( )

getFieldValue() публичный Метод

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
Результат mixed | null the value of this field for the document or null if not found

getIdentifier() публичный Метод

{@inheritDoc}
public getIdentifier ( )

getIdentifierFieldNames() публичный Метод

Since PHPCR only allows exactly one identifier field this is a proxy to {@see \getIdentifier()} and returns an array.
public getIdentifierFieldNames ( ) : array
Результат array

getIdentifierValue() публичный Метод

Gets the document identifier.
public getIdentifierValue ( object $document ) : string
$document object
Результат string $id

getIdentifierValues() публичный Метод

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
Результат array

getInheritMixins() публичный Метод

Return whether to inherit mixins from parent
public getInheritMixins ( ) : boolean
Результат boolean

getLifecycleCallbacks() публичный Метод

Gets the registered lifecycle callbacks for an event.
public getLifecycleCallbacks ( string $event ) : array
$event string
Результат array

getMixins() публичный Метод

Return the JCR mixins to be used for this node.
public getMixins ( ) : array
Результат array

getName() публичный Метод

{@inheritDoc}
public getName ( )

getNamespace() публичный Метод

The namespace this Document class belongs to.
public getNamespace ( ) : string
Результат string $namespace The namespace name.

getNodeType() публичный Метод

Return the JCR node type to be used for this node.
public getNodeType ( ) : string
Результат string

getParentClasses() публичный Метод

Return the mapped parent classes
public getParentClasses ( ) : array
Результат array of mapped class FQNs

getReflectionClass() публичный Метод

{@inheritDoc}
public getReflectionClass ( )

getReflectionProperties() публичный Метод

Gets the ReflectionProperties of the mapped class.
public getReflectionProperties ( ) : array
Результат array An array of \ReflectionProperty instances.

getReflectionProperty() публичный Метод

Gets a ReflectionProperty for a specific field of the mapped class.
public getReflectionProperty ( string $name ) : ReflectionProperty
$name string
Результат ReflectionProperty

getTypeOfField() публичный Метод

{@inheritDoc}
public getTypeOfField ( $fieldName )

getUuidFieldName() публичный Метод

public getUuidFieldName ( )

hasAssociation() публичный Метод

{@inheritDoc}
public hasAssociation ( $fieldName )

hasField() публичный Метод

{@inheritDoc}
public hasField ( $fieldName )

hasLifecycleCallbacks() публичный Метод

Whether the class has any attached lifecycle listeners or callbacks for a lifecycle event.
public hasLifecycleCallbacks ( string $lifecycleEvent ) : boolean
$lifecycleEvent string
Результат boolean

hasUniqueNodeType() публичный Метод

Return true if this document has a unique node type among all mappings.
public hasUniqueNodeType ( ) : boolean
Результат boolean

initializeReflection() публичный Метод

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() публичный Метод

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() публичный Метод

{@inheritDoc}
public isAssociationInverseSide ( $assocName )

isCollectionValuedAssociation() публичный Метод

{@inheritDoc}
public isCollectionValuedAssociation ( $fieldName )

isIdGeneratorNone() публичный Метод

Checks whether the class uses no id generator.
public isIdGeneratorNone ( ) : boolean
Результат boolean TRUE if the class does not use any id generator, FALSE otherwise.

isIdGeneratorRepository() публичный Метод

Checks whether the class will generate an id via the repository.
public isIdGeneratorRepository ( ) : boolean
Результат boolean TRUE if the class uses the Repository generator, FALSE otherwise.

isIdentifier() публичный Метод

{@inheritDoc}
public isIdentifier ( $fieldName )

isInheritedField() публичный Метод

Checks whether a mapped field is inherited from an entity superclass.
public isInheritedField ( $fieldName ) : boolean
Результат boolean string class name if the field is inherited, FALSE otherwise.

isLeaf() публичный Метод

Return true if this is designated as a leaf node.
public isLeaf ( ) : boolean
Результат boolean

isNullable() публичный Метод

Check if the field is nullable or not.
public isNullable ( string $fieldName ) : boolean
$fieldName string The field name
Результат boolean TRUE if the field is nullable, FALSE otherwise.

isSingleValuedAssociation() публичный Метод

{@inheritDoc}
public isSingleValuedAssociation ( $fieldName )

isUuid() публичный Метод

Whether $fieldName is the universally unique identifier of the document.
public isUuid ( string $fieldName ) : boolean
$fieldName string
Результат boolean True if $fieldName is mapped as the uuid, false otherwise.

isValidNodename() публичный Метод

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
Результат PHPCR\RepositoryException | null

mapChild() публичный Метод

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

mapChildren() публичный Метод

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

mapDepth() публичный Метод

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

mapField() публичный Метод

- 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 mapId ( array $mapping, ClassMetadata $inherited = null )
$mapping array
$inherited ClassMetadata

mapLifecycleCallbacks() публичный Метод

public mapLifecycleCallbacks ( array $mapping )
$mapping array

mapLocale() публичный Метод

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

mapManyToMany() публичный Метод

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

mapManyToOne() публичный Метод

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

mapMixedReferrers() публичный Метод

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

mapNode() публичный Метод

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

mapNodename() публичный Метод

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

mapParentDocument() публичный Метод

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

mapReferrers() публичный Метод

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

mapVersionCreated() публичный Метод

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

mapVersionName() публичный Метод

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

newInstance() публичный Метод

Creates a new instance of the mapped class, without invoking the constructor.
public newInstance ( ) : object
Результат object

setChildClasses() публичный Метод

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

setCustomRepositoryClassName() публичный Метод

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

setFieldValue() публичный Метод

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() защищенный Метод

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

setIdentifier() публичный Метод

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

setIdentifierValue() публичный Метод

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

setInheritMixins() публичный Метод

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

setIsLeaf() публичный Метод

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

setLifecycleCallbacks() публичный Метод

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

setMixins() публичный Метод

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

setNodeType() публичный Метод

public setNodeType ( string $nodeType )
$nodeType string

setParentClasses() публичный Метод

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

setReferenceable() публичный Метод

public setReferenceable ( boolean $referenceable )
$referenceable boolean

setTranslator() публичный Метод

Sets the translator strategy key
public setTranslator ( $translator )

setUniqueNodeType() публичный Метод

public setUniqueNodeType ( boolean $uniqueNodeType )
$uniqueNodeType boolean

setVersioned() публичный Метод

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

validateAndCompleteAssociationMapping() защищенный Метод

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

validateAndCompleteFieldMapping() защищенный Метод

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.
Результат mixed

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.
public validateIdentifier ( )

validateLifecycleCallbacks() публичный Метод

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

validateReferenceable() публичный Метод

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

validateReferences() публичный Метод

Validate association targets actually exist.
public validateReferences ( )

validateTranslatables() публичный Метод

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

wakeupReflection() публичный Метод

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

Описание свойств

$childClasses публичное свойство

If empty then any classes are permitted.
public array $childClasses
Результат array

$childMappings публичное свойство

READ-ONLY: The child mappings of the class.
public array $childMappings
Результат array

$childrenMappings публичное свойство

READ-ONLY: The children mappings of the class.
public array $childrenMappings
Результат array

$customRepositoryClassName публичное свойство

(Optional).
public string $customRepositoryClassName
Результат string

$depthMapping публичное свойство

READ-ONLY: Name of the depth property
public string $depthMapping
Результат string

$fieldMappings публичное свойство

READ-ONLY: The field mappings of the class.
public array $fieldMappings
Результат array

$idGenerator публичное свойство

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

$identifier публичное свойство

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

$inheritMixins публичное свойство

READ-ONLY: Inherit parent class' mixins (default) or not
public bool $inheritMixins
Результат boolean

$isLeaf публичное свойство

READ-ONLY: If the document should be act as a leaf-node and therefore not be allowed children.
public bool $isLeaf
Результат boolean

$isMappedSuperclass публичное свойство

READ-ONLY: Whether this class describes the mapping of a mapped superclass.
public bool $isMappedSuperclass
Результат boolean

$lifecycleCallbacks публичное свойство

READ-ONLY: The registered lifecycle callbacks for documents of this class.
public array $lifecycleCallbacks
Результат array

$localeMapping публичное свойство

READ-ONLY: Name of the locale property
public string $localeMapping
Результат string

$mappings публичное свойство

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
Результат array

$mixedReferrersMappings публичное свойство

READ-ONLY: The mixed referrers (read only) mappings of the class.
public array $mixedReferrersMappings
Результат array

$mixins публичное свойство

READ-ONLY: The JCR Mixins to be used for this node (including inherited mixins)
public array $mixins
Результат array

$name публичное свойство

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

$namespace публичное свойство

READ-ONLY: The namespace the document class is contained in.
public string $namespace
Результат string

$node публичное свойство

READ-ONLY: The field name of the node
public string $node
Результат string

$nodeType публичное свойство

READ-ONLY: The JCR Nodetype to be used for this node
public string $nodeType
Результат string

$nodename публичное свойство

READ-ONLY except on document creation: The field name for the name of the node.
public string $nodename
Результат string

$parentClasses публичное свойство

READ-ONLY: Mapped parent classes.
public array $parentClasses
Результат array

$parentMapping публичное свойство

READ-ONLY except on document creation: The field name for the parent document.
public string $parentMapping
Результат string

$referenceMappings публичное свойство

READ-ONLY: The reference mappings of the class.
public array $referenceMappings
Результат array

$referenceable публичное свойство

READ-ONLY: determines if the document is referenceable or not
public bool $referenceable
Результат boolean

$referrersMappings публичное свойство

READ-ONLY: The referrers mappings of the class.
public array $referrersMappings
Результат array

$reflClass публичное свойство

The ReflectionClass instance of the mapped class.
public ReflectionClass $reflClass
Результат ReflectionClass

$reflFields публичное свойство

READ-ONLY: The ReflectionProperty instances of the mapped class.
public ReflectionProperty[],ReflectionPropert $reflFields
Результат ReflectionPropert\ReflectionProperty[]

$translatableFields публичное свойство

READ-ONLY: List of translatable fields
public array $translatableFields
Результат array

$translator публичное свойство

This is the key used for DocumentManagerInterface::getTranslationStrategy
public string $translator
Результат string

$uniqueNodeType публичное свойство

READ-ONLY: If true, consider this document's node type to be unique among all mappings.
public bool $uniqueNodeType
Результат boolean

$uuidFieldName публичное свойство

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

$validVersionableAnnotations защищенное статическое свойство

protected static $validVersionableAnnotations

$versionCreatedField публичное свойство

READ-ONLY: Name of the version created property of this document
public string $versionCreatedField
Результат string

$versionNameField публичное свойство

READ-ONLY: Name of the version name property of this document
public string $versionNameField
Результат string

$versionable публичное свойство

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
Результат boolean | string