8000 Here are the aliases for the orm and mongodb odm by jwage · Pull Request #14 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Here are the aliases for the orm and mongodb odm #14

New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adding setLogger for data fixtures.
  • Loading branch information
jwage authored and fabpot committed Oct 5, 2010
commit 3bc3115d8c784c5be201d0156a51d6626135a246
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
$fixtures = $loader->getFixtures();
$purger = new \Doctrine\Common\DataFixtures\Purger\ORMPurger($em);
$executor = new \Doctrine\Common\DataFixtures\Executor\ORMExecutor($em, $purger);
$executor->setLogger(function($message) use ($output) {
$output->writeln(sprintf(' <comment>></comment> <info>%s</info>', $message));
});
$executor->execute($fixtures, $input->getOption('append'));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
$fixtures = $loader->getFixtures();
$purger = new \Doctrine\Common\DataFixtures\Purger\MongoDBPurger($dm);
$executor = new \Doctrine\Common\DataFixtures\Executor\MongoDBExecutor($dm, $purger);
$executor->setLogger(function($message) use ($output) {
$output->writeln(sprintf(' <comment>></comment> <info>%s</info>', $message));
});
$executor->execute($fixtures, $input->getOption('append'));
}
}
0