class StaticPHPDriver implements MappingDriver (View source)

The StaticPHPDriver calls a static loadMetadata() method on your entity classes where you can manually populate the ClassMetadata instance.

Methods

__construct($paths)

No description

addPaths(array $paths)

No description

loadMetadataForClass(string $className, ClassMetadata $metadata)

Loads the metadata for the specified class into the provided container.

array
getAllClassNames()

Gets the names of all mapped classes known to this driver.

boolean
isTransient(string $className)

Whether the class with the specified name should have its metadata loaded.

Details

__construct($paths)

Parameters

$paths

addPaths(array $paths)

Parameters

array $paths

loadMetadataForClass(string $className, ClassMetadata $metadata)

Loads the metadata for the specified class into the provided container.

Parameters

string $className
ClassMetadata $metadata

array getAllClassNames()

Gets the names of all mapped classes known to this driver.

Return Value

array The names of all mapped classes known to this driver.

boolean isTransient(string $className)

Whether the class with the specified name should have its metadata loaded.

This is only the case if it is either mapped as an Entity or a MappedSuperclass.

Parameters

string $className

Return Value

boolean