title: Symfony 2 - couldn't load a fixture
body: <p>Im beginner with Symfony 2 (2.8.* version). I'm trying to load sample data to my database with fixture and faker. I've created src/AppBundle/DataFixtures/ORM directory and put there a LoadPostData.php file with this code: </p>
  
  <pre><code>&lt;?php
  
  namespace AppBundle\DataFixtures\ORM;
  
  
  use Doctrine\Common\DataFixtures\FixtureInterface;
  use Doctrine\Common\Persistance\ObjectManager;
  
  
  class LoadPostData implements FixtureInterface
  {
      public function load(ObjectManager $manager)
      {
          $faker = \Faker\Factory::create();
  
          for ($i = 1; $i &lt; 200; $i++) {
  
              $post = new \AppBundle\Entity\Post();
              $post-&gt;setTitle($faker-&gt;sentence(3));
              $post-&gt;setLead($faker-&gt;text(300));
              $post-&gt;setContent($faker-&gt;text(800));
              $post-&gt;setCreatedAt($faker-&gt;dateTimeThisMonth);
  
  
              $manager-&gt;persist($post);
          }
  
  
          $manager-&gt;flush();
      }
  }
  </code></pre>
  
  <p>But when I hit a command "php app/console doctrine:fixtures:load" in my terminal I get this error:</p>
  
  <pre><code>PHP Fatal error:  Declaration of AppBundle\DataFixtures\ORM\LoadPostData::load(Doctrine\Common\Persistance\O
  bjectManager $manager) must be compatible with Doctrine\Common\DataFixtures\FixtureInterface::load(Doctrine\Common\Persist
  ence\ObjectManager $manager) in /Users/myMac/Desktop/symfony2/Blog/src/AppBundle/DataFixtures/ORM/
  LoadPostData.php on line 10
  
  Fatal error: Declaration of AppBundle\DataFixtures\ORM\LoadPostData::load(Doctrine\Common\Persistance\ObjectManager $manager) must be compatible with Doctrine\Common\DataFixtures\FixtureInterface::load(Doctrine\Common\Persistence\ObjectManager $manager) in /Users/myMac/Desktop/symfony2/Blog/src/AppBundle/DataFixtures/ORM/LoadPostData.php on line 10
  </code></pre>
  
  <p>(line 10 is a declaration of LoadPostData class)</p>
  
  <p>What do I do wrong here? I was following a tutorial step by step and have no idea what is missing. Thanks in advance! </p>