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

Already on GitHub? Sign in to your account

Dependent fixtures autoloading when using CLI command #84

Merged
merged 1 commit into from Feb 12, 2013

Conversation

Projects
None yet
3 participants

When using the cli doctrine:fixtures:load command with the --fixtures parameter, the dependent fixture could not be loaded with RuntimeException

Fixture "<dependentFixtureName>" was declared as a dependency, but it should be added in fixture loader first.

This commit will add each dependent fixture to the loader.

KeKs0r commented Jan 7, 2013

I am facing the same issue, as well as in some Functional Tests and since today even, if I try to load my default fixtures. Is there any progress on this PR?

@guilhermeblanco guilhermeblanco added a commit that referenced this pull request Feb 12, 2013

@guilhermeblanco guilhermeblanco Merge pull request #84 from francisek/master
Dependent fixtures autoloading when using CLI command
689bc2a

@guilhermeblanco guilhermeblanco merged commit 689bc2a into doctrine:master Feb 12, 2013

@lavoiesl lavoiesl added a commit to lavoiesl/data-fixtures that referenced this pull request Mar 22, 2015

@lavoiesl lavoiesl Fixes #142: Circular dependencies
Bug introduced in #84

 1. The fixture is now registered in the array _before_ recursing.
 2. `class_exists` is now called so that the error about unexistant
    dependencies is properly thrown in `validateDependencies`.
2d1a254

@lavoiesl lavoiesl added a commit that referenced this pull request Mar 23, 2015

@lavoiesl lavoiesl Fixes #142: Circular dependencies
Bug introduced in #84

 1. The fixture is now registered in the array _before_ recursing.
 2. `class_exists` is now called so that the error about unexistant
    dependencies is properly thrown in `validateDependencies`.
55a15ce

@lavoiesl lavoiesl added a commit that referenced this pull request Mar 23, 2015

@lavoiesl lavoiesl Fixes #142: Circular dependencies
Bug introduced in #84

 1. The fixture is now registered in the array _before_ recursing.
 2. `class_exists` is now called so that the error about unexistant
    dependencies is properly thrown in `validateDependencies`.
4cf2227

@kniziol kniziol added a commit to kniziol/data-fixtures that referenced this pull request Mar 26, 2015

@lavoiesl @kniziol lavoiesl + kniziol Fixes #142: Circular dependencies
Bug introduced in #84

 1. The fixture is now registered in the array _before_ recursing.
 2. `class_exists` is now called so that the error about unexistant
    dependencies is properly thrown in `validateDependencies`.
96aa4ab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment