PHP Class Doctrine\OXM\Mapping\Driver\YAMLDriver

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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

isTransient() public méthode

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

loadMappingFile() protected méthode

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.
Résultat array

loadMetadataForClass() public méthode

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