PHP Class Doctrine\ODM\PHPCR\Mapping\ClassMetadataFactory

Since: 1.0
Author: Benjamin Eberlei ([email protected])
Author: Lukas Kahwe Smith ([email protected])
Inheritance: extends Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory
Afficher le fichier Open project: doctrine/phpcr-odm Class Usage Examples

Protected Properties

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

Méthodes publiques

Méthode Description
__construct ( Doctrine\ODM\PHPCR\DocumentManagerInterface $dm ) Creates a new factory instance that uses the given DocumentManager instance.
getMetadataFor ( $className )
loadMetadata ( $className )

Méthodes protégées

Méthode Description
doLoadMetadata ( ClassMetadata $class, ClassMetadata | null $parent, boolean $rootEntityFound, array $nonSuperclassParents ) Actually loads PHPCR-ODM metadata from the underlying metadata.
getDriver ( )
getFqcnFromAlias ( $namespaceAlias, $simpleClassName )
initialize ( )
initializeReflection ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class, Doctrine\Common\Persistence\Mapping\ReflectionService $reflService )
isEntity ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class ) {@inheritDoc}
newClassMetadataInstance ( $className )
validateRuntimeMetadata ( ClassMetadata $class, $parent ) Validate runtime metadata is correctly defined.
wakeupReflection ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class, Doctrine\Common\Persistence\Mapping\ReflectionService $reflService )

Private Methods

Méthode Description
addInheritedDocumentOptions ( ClassMetadata $subClass, ClassMetadata $parentClass ) Set the document level options of the parent class to the subclass.
addInheritedFields ( ClassMetadata $subClass, ClassMetadata $parentClass ) Adds inherited fields to the subclass mapping.

Method Details

__construct() public méthode

Creates a new factory instance that uses the given DocumentManager instance.
public __construct ( Doctrine\ODM\PHPCR\DocumentManagerInterface $dm )
$dm Doctrine\ODM\PHPCR\DocumentManagerInterface The DocumentManager instance

doLoadMetadata() protected méthode

Actually loads PHPCR-ODM metadata from the underlying metadata.
protected doLoadMetadata ( ClassMetadata $class, ClassMetadata | null $parent, boolean $rootEntityFound, array $nonSuperclassParents )
$class ClassMetadata
$parent ClassMetadata | null
$rootEntityFound boolean
$nonSuperclassParents array All parent class names that are not marked as mapped superclasses.

getDriver() protected méthode

protected getDriver ( )

getFqcnFromAlias() protected méthode

protected getFqcnFromAlias ( $namespaceAlias, $simpleClassName )

getMetadataFor() public méthode

public getMetadataFor ( $className )

initialize() protected méthode

protected initialize ( )

initializeReflection() protected méthode

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 méthode

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

loadMetadata() public méthode

public loadMetadata ( $className )

newClassMetadataInstance() protected méthode

protected newClassMetadataInstance ( $className )

validateRuntimeMetadata() protected méthode

Validate runtime metadata is correctly defined.
protected validateRuntimeMetadata ( ClassMetadata $class, $parent )
$class ClassMetadata
$parent

wakeupReflection() protected méthode

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