DoctrineDataFixtureModule icon indicating copy to clipboard operation
DoctrineDataFixtureModule copied to clipboard

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

Open Charl13 opened this issue 11 years ago • 1 comments

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.

Charl13 avatar Mar 25 '15 20:03 Charl13

Yes, get the same issue.

sauron07 avatar Jun 23 '15 08:06 sauron07