Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong Registering Fixtures configuration #38

Open
pdrosos opened this issue Nov 10, 2014 · 3 comments
Open

Wrong Registering Fixtures configuration #38

pdrosos opened this issue Nov 10, 2014 · 3 comments
Assignees
Labels
Milestone

Comments

@pdrosos
Copy link

pdrosos commented Nov 10, 2014

Hello,

The configuration for Registering Fixtures

return array(
      'data-fixture' => array(
            'ModuleName_fixture' => __DIR__ . '/../src/ModuleName/Fixture',
      )
);

does not work and the fixtures files are not loaded. It should be

return array(
    'doctrine' => array(
        'fixture' => array(
             'ModuleName_fixture' => __DIR__ . '/../src/ModuleName/Fixture',
        )
    ),
);

and then everything works fine.
Please update the documentation :)

Thanks!

@Ocramius
Copy link
Collaborator

@pdrosos can you PR the documentation directly? Editing from web also works :-)

Consider checking #37 - this may be my mistake (merging that PR)

@Ocramius Ocramius self-assigned this Nov 10, 2014
@Ocramius Ocramius added the bug label Nov 10, 2014
@Ocramius Ocramius added this to the 1.0.0 milestone Nov 10, 2014
@jl91
Copy link

jl91 commented Oct 5, 2015

this is not working for me, and when a try to debug /vendor/hounddog/doctrine-data-fixture-module/src/DoctrineDataFixtureModule/Command/ImportCommand.php

on line 78 with print_r($this->paths);
exit();

and run it in terminal i have a empty array return;

@manuakasam
Copy link

Currently the configuration needs to be just under the data-fixture key as outlined in https://github.com/Hounddog/DoctrineDataFixtureModule/blob/0.0.4/src/DoctrineDataFixtureModule/Service/FixtureFactory.php#L55

So therefore the documentation requires an update like

return [
    'data-fixture' => [
        'Foo_fixture' => '/path/to/Foo/Fixture'
    ]
];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants