Skip to content

$sm->get('doctrine.configuration.fixtures') returns empty paths, import fails #39

Description

@ackimwilliams

REF: #33

This issue has not resolved.
If you setup the module as in the documentation, the import does not work because within Module.php
$paths = $sm->get('doctrine.configuration.fixtures'); returns an empty array. What actually works is $config = $sm->get('Config'); $paths = $config['data-fixture']; if you adhere to the documentation.

The solution is either update Module.php or update the documentation from

return [
      'data-fixture' => [
            'ModuleName_fixture' => __DIR__ . '/../src/ModuleName/Fixture',
      ]
];

to

return [
    'doctrine' => [
        'fixture' => [
             'ModuleName_fixture' => __DIR__ . '/../src/ModuleName/Fixture',
        ]
    ],
];

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions