Doctrine\ORM\Mapping\Driver\AnnotationDriver
The AnnotationDriver reads the mapping metadata from docblock annotations.
- Author: Benjamin Eberlei <kontakt@beberlei.de>
Synopsis
class AnnotationDriver
extends AnnotationDriver
{
- // members
- protected array $entityAnnotationClasses;
- // Inherited members from AnnotationDriver
- protected AnnotationReader $reader;
- protected array $paths;
- protected string $fileExtension;
- protected array $classNames;
- protected array $entityAnnotationClasses;
- // methods
- public void loadMetadataForClass()
- private integer getFetchMode()
- private array joinColumnToArray()
- private array columnToArray()
- public static AnnotationDriver create()
- // Inherited methods from AnnotationDriver
- public void __construct()
- public void addPaths()
- public array getPaths()
- public AnnotationReader getReader()
- public string getFileExtension()
- public void setFileExtension()
- public boolean isTransient()
- public void getAllClassNames()
Hierarchy
Members
protected
- $classNames
—
array
Cache for AnnotationDriver#getAllClassNames() -
$entityAnnotationClasses
{@inheritDoc} - $entityAnnotationClasses
—
array
Name of the entity annotations as keys - $fileExtension
—
string
The file extension of mapping documents. - $paths
—
array
The paths where to look for mapping files. - $reader
—
Doctrine\Common\Annotations\AnnotationReader
The AnnotationReader.
Methods
private
- columnToArray() — Parse the given Column as array
- getFetchMode() — Attempts to resolve the fetch mode.
- joinColumnToArray() — Parse the given JoinColumn as array
public
- create() — Factory method for the Annotation Driver
- loadMetadataForClass() — {@inheritDoc}
Inherited from Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver
public
- addPaths() — Append lookup paths to metadata driver.
- getAllClassNames() — {@inheritDoc}
- getFileExtension() — Get the file extension used to look for mapping files under
- getPaths() — Retrieve the defined metadata lookup paths.
- getReader() — Retrieve the current annotation reader
- isTransient() — Whether the class with the specified name is transient. Only non-transient classes, that is entities and mapped superclasses, should have their metadata loaded.
- setFileExtension() — Set the file extension used to look for mapping files under