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
파일 보기 프로젝트 열기: doctrine/phpcr-odm 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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

보호된 프로퍼티들

프로퍼티 타입 설명
$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