From 5da5aa1198c83613ad1ce369443c2cd0c9c36fc8 Mon Sep 17 00:00:00 2001 From: brikou Date: Mon, 14 Mar 2011 09:34:04 -0700 Subject: [PATCH] Edited src/Symfony/Bundle/DoctrineMongoDBBundle/Command/LoadDataFixturesDoctrineODMCommand.php via GitHub --- .../Command/LoadDataFixturesDoctrineODMCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/DoctrineMongoDBBundle/Command/LoadDataFixturesDoctrineODMCommand.php b/src/Symfony/Bundle/DoctrineMongoDBBundle/Command/LoadDataFixturesDoctrineODMCommand.php index d3f89b01a91b4..dc51fa2145175 100644 --- a/src/Symfony/Bundle/DoctrineMongoDBBundle/Command/LoadDataFixturesDoctrineODMCommand.php +++ b/src/Symfony/Bundle/DoctrineMongoDBBundle/Command/LoadDataFixturesDoctrineODMCommand.php @@ -90,12 +90,14 @@ protected function execute(InputInterface $input, OutputInterface $output) $loader->loadFromDirectory($path); } } + + $fixtures = $loader->getFixtures(); if (!$fixtures) { throw new InvalidArgumentException( sprintf('Could not find any fixtures to load in: %s', "\n\n- ".implode("\n- ", $paths)) ); } - $fixtures = $loader->getFixtures(); + $purger = new MongoDBPurger($dm); $executor = new MongoDBExecutor($dm, $purger); $executor->setLogger(function($message) use ($output) { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy