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

Documentation lets you install 0.0.4 and breaks the data-fixure:import command #42

Open
Charl13 opened this issue Mar 25, 2015 · 1 comment

Comments

@Charl13
Copy link

Charl13 commented Mar 25, 2015

The documentation says:

$ php composer.phar require hounddog/doctrine-data-fixture-module:0.0.*

Using this command composer will require tag 0.0.4. In that version the configuration is not fetched like the documentation explains.

DoctrineDataFixtureModule\Service\FixtureFactory on 0.0.4

public function getOptions(ServiceLocatorInterface $sl, $key)
{
    $options = $sl->get('Configuration');
    if (!isset($options['data-fixture'])) {
        return array();
    }

    return $options['data-fixture'];
}

DoctrineDataFixtureModule\Service\FixtureFactory on master

public function getOptions(ServiceLocatorInterface $sl, $key)
{
    $options = $sl->get('config');
    if (!isset($options['doctrine']['fixture'])) {
        return array();
    }

    return $options['doctrine']['fixture'];
}

So after following the documentation for installation and configuration you will end up with a command that will not load any fixtures.

@sauron07
Copy link

Yes, get the same issue.

@Charl13 Charl13 changed the title Documentation lets you install 0.0.4 Documentation lets you install 0.0.4 and breaks the data-fixure:import command Jun 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants