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
Exibir arquivo Open project: doctrine/phpcr-odm Class Usage Examples

Protected Properties

Property Type Description
$cacheSalt

Public Methods

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

Protected Methods

Method 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

Method 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 method

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 method

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 method

protected getDriver ( )

getFqcnFromAlias() protected method

protected getFqcnFromAlias ( $namespaceAlias, $simpleClassName )

getMetadataFor() public method

public getMetadataFor ( $className )

initialize() protected method

protected initialize ( )

initializeReflection() protected method

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

loadMetadata() public method

public loadMetadata ( $className )

newClassMetadataInstance() protected method

protected newClassMetadataInstance ( $className )

validateRuntimeMetadata() protected method

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

wakeupReflection() protected method

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