PHP Class Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory

Since: 1.0
Inheritance: extends Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory
Mostrar archivo Open project: doctrine/mongodb-odm Class Usage Examples

Protected Properties

Property Type Description
$cacheSalt

Public Methods

Method Description
setConfiguration ( Configuration $config ) Sets the Configuration instance
setDocumentManager ( DocumentManager $dm ) Sets the DocumentManager instance for this class.

Protected Methods

Method Description
doLoadMetadata ( $class, $parent, $rootEntityFound, array $nonSuperclassParents = [] ) {@inheritDoc}
getDriver ( ) {@inheritDoc}
getFqcnFromAlias ( $namespaceAlias, $simpleClassName ) {@inheritDoc}
initialize ( ) Lazy initialization of this stuff, especially the metadata driver, since these are not needed at all when a metadata cache is active.
initializeReflection ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class, Doctrine\Common\Persistence\Mapping\ReflectionService $reflService ) {@inheritDoc}
isEntity ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class ) {@inheritDoc}
newClassMetadataInstance ( string $className ) : ClassMetadata Creates a new ClassMetadata instance for the given class name.
validateIdentifier ( ClassMetadata $class ) Validates the identifier mapping.
wakeupReflection ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class, Doctrine\Common\Persistence\Mapping\ReflectionService $reflService ) {@inheritDoc}

Private Methods

Method Description
addInheritedFields ( ClassMetadata $subClass, ClassMetadata $parentClass ) Adds inherited fields to the subclass mapping.
addInheritedIndexes ( ClassMetadata $subClass, ClassMetadata $parentClass ) Adds inherited indexes to the subclass mapping.
addInheritedRelations ( ClassMetadata $subClass, ClassMetadata $parentClass ) : void Adds inherited association mappings to the subclass mapping.
completeIdGeneratorMapping ( ClassMetadataInfo $class )
setInheritedShardKey ( ClassMetadata $subClass, ClassMetadata $parentClass ) Adds inherited shard key to the subclass mapping.

Method Details

doLoadMetadata() protected method

{@inheritDoc}
protected doLoadMetadata ( $class, $parent, $rootEntityFound, array $nonSuperclassParents = [] )
$nonSuperclassParents array

getDriver() protected method

{@inheritDoc}
protected getDriver ( )

getFqcnFromAlias() protected method

{@inheritDoc}
protected getFqcnFromAlias ( $namespaceAlias, $simpleClassName )

initialize() protected method

Lazy initialization of this stuff, especially the metadata driver, since these are not needed at all when a metadata cache is active.
protected initialize ( )

initializeReflection() protected method

{@inheritDoc}
protected initializeReflection ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class, Doctrine\Common\Persistence\Mapping\ReflectionService $reflService )
$class Doctrine\Common\Persistence\Mapping\ClassMetadata
$reflService Doctrine\Common\Persistence\Mapping\ReflectionService

isEntity() protected method

{@inheritDoc}
protected isEntity ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class )
$class Doctrine\Common\Persistence\Mapping\ClassMetadata

newClassMetadataInstance() protected method

Creates a new ClassMetadata instance for the given class name.
protected newClassMetadataInstance ( string $className ) : ClassMetadata
$className string
return ClassMetadata

setConfiguration() public method

Sets the Configuration instance
public setConfiguration ( Configuration $config )
$config Doctrine\ODM\MongoDB\Configuration

setDocumentManager() public method

Sets the DocumentManager instance for this class.
public setDocumentManager ( DocumentManager $dm )
$dm Doctrine\ODM\MongoDB\DocumentManager The DocumentManager instance

validateIdentifier() protected method

Validates the identifier mapping.
protected validateIdentifier ( ClassMetadata $class )
$class ClassMetadata

wakeupReflection() protected method

{@inheritDoc}
protected wakeupReflection ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class, Doctrine\Common\Persistence\Mapping\ReflectionService $reflService )
$class Doctrine\Common\Persistence\Mapping\ClassMetadata
$reflService Doctrine\Common\Persistence\Mapping\ReflectionService

Property Details

$cacheSalt protected_oe property

protected $cacheSalt