Doctrine\Common\Persistence\Mapping\Driver\StaticPHPDriver
The StaticPHPDriver calls a static loadMetadata() method on your entity classes where you can manually populate the ClassMetadata instance.
- Author: Benjamin Eberlei <kontakt@beberlei.de>
- License: http://www.opensource.org/licenses/lgpl-license.php LGPL
Synopsis
class StaticPHPDriver
implements
MappingDriver
{
- // members
- private array $paths;
- private array $classNames;
- // methods
- public void __construct()
- public void addPaths()
- public void loadMetadataForClass()
- public void getAllClassNames()
- public void isTransient()
Hierarchy
Extended by
Implements
Tasks
Line | Task |
---|---|
85+ | Same code exists in AnnotationDriver, should we re-use it somehow or not worry about it? |
Members
private
- $classNames
—
array
Map of all class names. - $paths
—
array
Paths of entity directories.
Methods
public
- __construct() — Constructor
- addPaths() — Add paths
- getAllClassNames() — {@inheritDoc}
- isTransient() — {@inheritdoc}
- loadMetadataForClass() — {@inheritdoc}