PHP Class Doctrine\OXM\Mapping\Driver\YAMLDriver

Since: 2.0
Author: Richard Fullmer ([email protected])
Inheritance: extends AbstractFileDriver
Datei anzeigen Open project: doctrine/oxm Class Usage Examples

Public Methods

Method Description
getAllClassNames ( ) : array Gets the names of all mapped classes known to this driver.
isTransient ( string $className ) : boolean Whether the class with the specified name should have its metadata loaded.
loadMetadataForClass ( string $className, ClassMetadataInfo $metadata ) Loads the mapping for the specified class into the provided container.

Protected Methods

Method Description
loadMappingFile ( string $file ) : array Loads a mapping file with the given name and returns a map from class/entity names to their corresponding elements.

Method Details

getAllClassNames() public method

Gets the names of all mapped classes known to this driver.
public getAllClassNames ( ) : array
return array The names of all mapped classes known to this driver.

isTransient() public method

This is only the case if it is either mapped as an XmlEntity
public isTransient ( string $className ) : boolean
$className string
return boolean

loadMappingFile() protected method

Loads a mapping file with the given name and returns a map from class/entity names to their corresponding elements.
protected loadMappingFile ( string $file ) : array
$file string The mapping file to load.
return array

loadMetadataForClass() public method

Loads the mapping for the specified class into the provided container.
public loadMetadataForClass ( string $className, ClassMetadataInfo $metadata )
$className string
$metadata Doctrine\OXM\Mapping\ClassMetadataInfo