Skip to content

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

Description

@Charl13

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions