Doctrine\ORM\Mapping\Driver\SimplifiedYamlDriver
YamlDriver that additionally looks for mapping information in a global file.
- Author: Fabien Potencier <fabien@symfony.com>
- License: MIT
Synopsis
class SimplifiedYamlDriver
extends YamlDriver
{
- // constants
- const DEFAULT_FILE_EXTENSION = '.orm.yml';
- // Inherited constants from YamlDriver
- const DEFAULT_FILE_EXTENSION = '.dcm.yml';
- // Inherited members from FileDriver
- protected FileLocator $locator;
- protected array $classCache;
- protected string $globalBasename;
- // methods
- public void __construct()
- // Inherited methods from YamlDriver
- public void __construct()
- public void loadMetadataForClass()
- protected void loadMappingFile()
- // Inherited methods from FileDriver
- public void __construct()
- public void setGlobalBasename()
- public string getGlobalBasename()
- public array getElement()
- public boolean isTransient()
- public array getAllClassNames()
- protected abstract array loadMappingFile()
- protected void initialize()
- public FileLocator getLocator()
- public void setLocator()
Hierarchy
Constants
Name | Value |
---|---|
DEFAULT_FILE_EXTENSION | '.orm.yml' |
DEFAULT_FILE_EXTENSION | '.dcm.yml' |
Members
protected
- $classCache — array
- $globalBasename — string
- $locator — Doctrine\Common\Persistence\Mapping\Driver\FileLocator
Methods
Inherited from Doctrine\ORM\Mapping\Driver\YamlDriver
protected
- loadMappingFile() — {@inheritDoc}
public
- loadMetadataForClass() — {@inheritDoc}
Inherited from Doctrine\Common\Persistence\Mapping\Driver\FileDriver
protected
- initialize() — Initialize the class cache from all the global files.
- loadMappingFile() — Loads a mapping file with the given name and returns a map from class/entity names to their corresponding file driver elements.
public
- getAllClassNames() — Gets the names of all mapped classes known to this driver.
- getElement() — Get the element of schema meta data for the class from the mapping file.
- getGlobalBasename() — Retrieve global basename
- getLocator() — Retrieve the locator used to discover mapping files by className
- isTransient() — Whether the class with the specified name should have its metadata loaded.
- setGlobalBasename() — Set global basename
- setLocator() — Set the locator used to discover mapping files by className