Package: php-doctrine-data-fixtures / 1.0.0-1

0002-Revert-Dependent-fixtures-autoloading-when-using-CLI.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sun, 7 Sep 2014 22:23:56 -0400
Subject: Revert "Dependent fixtures autoloading when using CLI command"

This reverts commit 5564cef895f28eb1ac09ac42d7fc0fae0a135468.

Bug: https://github.com/doctrine/data-fixtures/issues/142
---
 lib/Doctrine/Common/DataFixtures/Loader.php | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/lib/Doctrine/Common/DataFixtures/Loader.php b/lib/Doctrine/Common/DataFixtures/Loader.php
index 8f5f51c..3381adf 100644
--- a/lib/Doctrine/Common/DataFixtures/Loader.php
+++ b/lib/Doctrine/Common/DataFixtures/Loader.php
@@ -138,9 +138,6 @@ class Loader
                 $this->orderFixturesByNumber = true;
             } elseif ($fixture instanceof DependentFixtureInterface) {
                 $this->orderFixturesByDependencies = true;
-                foreach($fixture->getDependencies() as $class) {
-                    $this->addFixture(new $class);
-                }
             }
 
             $this->fixtures[$fixtureClass] = $fixture;