symfony/symfony-docs — Issue #1128: Documentation bug on data fixtures
Author: MichaelColeAmbiguity
Created: 2012-03-05 23:41:00+00:00
State: open

Hey, there's a documentation bug on this page:
http://symfony.com/doc/current/bundles/DoctrineFixturesBundle/index.html

It links in from the main Symfony2 book from this page:
http://symfony.com/doc/current/book/doctrine.html

See here for good code:
https://github.com/doctrine/data-fixtures/blob/master/README.md

To the examples, add the proper function declaration, and imports:
use Doctrine\Common\Persistence\ObjectManager;
...
public function load(ObjectManager $manager) {

Thanks for the awesome documentation. It's why I chose Symfony2!

(copied from https://github.com/symfony/symfony/issues/3509#issuecomment-4334052)