DoctrineDataFixtureModule icon indicating copy to clipboard operation
DoctrineDataFixtureModule copied to clipboard

Update Module.php

Open elia-c opened this issue 10 years ago • 4 comments

I tried to use your module with zf 2.3.2dev and when I execute the import command the module delete all my data but, doesn't create anything, that because the command: $paths = $sm->get('doctrine.configuration.fixtures'); in Module.php doesn't work. Just change it with: $config = $sm->get('Config'); $paths = $config['doctrine']['configuration']['fixtures']; and please change the documentation for the reference of fixture paths.

elia-c avatar Aug 08 '14 15:08 elia-c

Coverage Status

Coverage decreased (-0.08%) when pulling a5b3a4ecb55bef6a17288ee70837fc949b59ab88 on elia-c:patch-1 into 01329733186c05cab15ff52d9a5be38412519ffb on Hounddog:master.

coveralls avatar Aug 08 '14 15:08 coveralls

What does "doesn't work" mean here? Are you getting an exception? What is the return value?

Ocramius avatar Aug 08 '14 17:08 Ocramius

@elia-c I'd rather say that we should find out why the service is an empty array. It should rather be filled. We provided a dedicated service especially to prevent manual traversal of the configuration nodes.

Ocramius avatar Aug 10 '14 02:08 Ocramius

Follow step by step de README, I have the problem with namespace doctrine[fixture], I found de solution on stack overflow http://stackoverflow.com/questions/18022089/zend-framework-2-doctrine2-doctrinedatafixturemodule-no-loading-fixtures?answertab=votes#tab-top.

This guy said to use 'doctrine-fixture' root namespace instead of doctrine[fixture] how REAMD said.

Please, update de README and thanks by write this module, easy my life.

edipoReboucas avatar Aug 14 '14 17:08 edipoReboucas