class DoctrineMongoDBMappingsPass extends RegisterMappingsPass (View source)

Class for Symfony bundles to configure mappings for model classes not in the automapped folder.

NOTE: alias is only supported by Symfony 2.6+ and will be ignored with older versions.

Methods

__construct(Definition|Reference $driver, array $namespaces, array $managerParameters, bool $enabledParameter = false, array $aliasMap = [])

You should not directly instantiate this class but use one of the factory methods.

static 
createXmlMappingDriver(array $mappings, array $managerParameters, string $enabledParameter = false, array $aliasMap = [])

No description

static 
createPhpMappingDriver(array $mappings, array $managerParameters = [], string $enabledParameter = false, array $aliasMap = [])

No description

static 
createAnnotationMappingDriver(array $namespaces, array $directories, array $managerParameters, string $enabledParameter = false, array $aliasMap = [])

No description

static 
createStaticPhpMappingDriver(array $namespaces, array $directories, array $managerParameters = [], string $enabledParameter = false, array $aliasMap = [])

No description

Details

__construct(Definition|Reference $driver, array $namespaces, array $managerParameters, bool $enabledParameter = false, array $aliasMap = [])

You should not directly instantiate this class but use one of the factory methods.

Parameters

Definition|Reference $driver the driver to use
array $namespaces list of namespaces this driver should handle
array $managerParameters list of parameters that could tell the manager name to use
bool $enabledParameter if specified, the compiler pass only executes if this parameter exists in the service container.
array $aliasMap Map of alias to namespace.

static createXmlMappingDriver(array $mappings, array $managerParameters, string $enabledParameter = false, array $aliasMap = [])

Parameters

array $mappings Hashmap of directory path to namespace
array $managerParameters List of parameters that could which object manager name your bundle uses. This compiler pass will automatically append the parameter name for the default entity manager to this list.
string $enabledParameter Service container parameter that must be present to enable the mapping. Set to false to not do any check, optional.
array $aliasMap Map of alias to namespace.

static createPhpMappingDriver(array $mappings, array $managerParameters = [], string $enabledParameter = false, array $aliasMap = [])

Parameters

array $mappings Hashmap of directory path to namespace
array $managerParameters List of parameters that could which object manager name your bundle uses. This compiler pass will automatically append the parameter name for the default entity manager to this list.
string $enabledParameter Service container parameter that must be present to enable the mapping. Set to false to not do any check, optional.
array $aliasMap Map of alias to namespace.

static createAnnotationMappingDriver(array $namespaces, array $directories, array $managerParameters, string $enabledParameter = false, array $aliasMap = [])

Parameters

array $namespaces List of namespaces that are handled with annotation mapping
array $directories List of directories to look for annotation mapping files
array $managerParameters List of parameters that could which object manager name your bundle uses. This compiler pass will automatically append the parameter name for the default entity manager to this list.
string $enabledParameter Service container parameter that must be present to enable the mapping. Set to false to not do any check, optional.
array $aliasMap Map of alias to namespace.

static createStaticPhpMappingDriver(array $namespaces, array $directories, array $managerParameters = [], string $enabledParameter = false, array $aliasMap = [])

Parameters

array $namespaces List of namespaces that are handled with static php mapping
array $directories List of directories to look for static php mapping files
array $managerParameters List of parameters that could which object manager name your bundle uses. This compiler pass will automatically append the parameter name for the default entity manager to this list.
string $enabledParameter Service container parameter that must be present to enable the mapping. Set to false to not do any check, optional.
array $aliasMap Map of alias to namespace.