PHP Class Atrauzzi\LaravelDoctrine\ConfigMappingDriver

Inheritance: implements Doctrine\Common\Persistence\Mapping\Driver\MappingDriver
Datei anzeigen Open project: atrauzzi/laravel-doctrine

Public Methods

Method Description
getAllClassNames ( ) : array Gets the names of all mapped classes known to this driver.
isTransient ( string $className ) : boolean Returns whether the class with the specified name should have its metadata loaded.
loadMetadataForClass ( string $className, Doctrine\Common\Persistence\Mapping\ClassMetadata $metadata ) : void Loads the metadata for the specified class into the provided container.

Protected Methods

Method Description
mapField ( Doctrine\ORM\Mapping\Builder\ClassMetadataBuilder $builder, string $name, array | string $config ) Parses configuration for a field and adds it to the class metadata.

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 Entity or a MappedSuperclass.
public isTransient ( string $className ) : boolean
$className string
return boolean

loadMetadataForClass() public method

Loads the metadata for the specified class into the provided container.
public loadMetadataForClass ( string $className, Doctrine\Common\Persistence\Mapping\ClassMetadata $metadata ) : void
$className string
$metadata Doctrine\Common\Persistence\Mapping\ClassMetadata
return void

mapField() protected method

Parses configuration for a field and adds it to the class metadata.
protected mapField ( Doctrine\ORM\Mapping\Builder\ClassMetadataBuilder $builder, string $name, array | string $config )
$builder Doctrine\ORM\Mapping\Builder\ClassMetadataBuilder
$name string
$config array | string