Skip to content

Commit

Permalink
Merge pull request dsyph3r#8 from jaimesuez/patch-2
Browse files Browse the repository at this point in the history
Fixing data fixtures
  • Loading branch information
dsyph3r committed Feb 5, 2012
2 parents 085e328 + e1737d5 commit bdbf06c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/doctrine-2-the-blog-model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -657,11 +657,12 @@ We are now ready to define some fixtures for our blogs. Create a fixture file at
namespace Blogger\BlogBundle\DataFixtures\ORM;
use Doctrine\Common\DataFixtures\FixtureInterface;
use Doctrine\Common\Persistence\ObjectManager;
use Blogger\BlogBundle\Entity\Blog;
class BlogFixtures implements FixtureInterface
{
public function load($manager)
public function load(ObjectManager $manager)
{
$blog1 = new Blog();
$blog1->setTitle('A day with Symfony2');
Expand Down

0 comments on commit bdbf06c

Please sign in to comment.