title: Fatal Error when using Fixtures with Doctrine 2
body: <p>I am a Symblog 2 beginner and I'm following <a href="http://tutorial.symblog.co.uk/docs/doctrine-2-the-blog-model.html" rel="nofollow noreferrer">this tutorial for Symblog2</a>.</p>
  
  <p>I have created my <strong>Data Model</strong> and tried to populate test data to my DB using <strong>Doctrine 2 fixtures</strong>.</p>
  
  <p>I downloaded the necessary packages and added the following to my <code>autoload.php</code>:</p>
  
  <pre><code>'Doctrine\\Common\\DataFixtures'    =&gt; __DIR__.'/../vendor/doctrine-fixtures/lib',
  'Doctrine\\Common' =&gt; __DIR__.'/../vendor/doctrine-common/lib',
  </code></pre>
  
  <p>and the follwing to <code>AppKernel.php</code>:</p>
  
  <pre><code>new Symfony\Bundle\DoctrineFixturesBundle\DoctrineFixturesBundle(),
  </code></pre>
  
  <p>My fixtures class looks like this:</p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  namespace Soccer\MainBundle\DataFixtures\ORM;
  
  use Doctrine\Common\DataFixtures\FixtureInterface;
  use Soccer\MainBundle\Entity\Team;
  
  class TeamFixtures implements FixtureInterface
  {
      public function load($manager)
      {
          $team1 = new Team();
          $team1-&gt;setName('Poland');
          $team1-&gt;setImg('./img/POL.png');
          $team1-&gt;setKitHome('./img/POL_1.png');
          $team1-&gt;setKitAway('./img/POL_2.png');
          $manager-&gt;persist($team1);
  
          $manager-&gt;flush();
      }
  }
  </code></pre>
  
  <p>When i try to run <code>php app/console doctrine:fixtures:load</code>, I'm getting the following Exception:</p>
  
  <blockquote>
    <p>Fatal error: Declaration of <strong>Soccer\MainBundle\DataFixtures\ORM\TeamFixtures::load()</strong> must be compatible with that of <strong>Doctrine\Common\DataFixtures\FixtureInterface::load()</strong> in <strong>D:\xampp\htdocs\soccertips\em-symfony\src\Soccer\MainBundle\DataFixtures\ORM\TeamFixtures.php</strong> on line <strong>8</strong></p>
  
  <pre><code>Call Stack:
      0.0004     328688   1. {main}() D:\xampp\htdocs\soccertips\em-symfony\app\console:0
      0.0283    2043272   2. Symfony\Component\Console\Application-&gt;run() D:\xampp\htdocs\soccertips\em-symfony\app\console:22
      0.0344    2230520   3. Symfony\Bundle\FrameworkBundle\Console\Application-&gt;doRun() D:\xampp\htdocs\soccertips\em-symfony\vendor\symfony\src\Symfony\Component\Console\Application.php:118
      3.3961   18394992   4. Symfony\Component\Console\Application-&gt;doRun() D:\xampp\htdocs\soccertips\em-symfony\vendor\symfony\src\Symfony\Bundle\FrameworkBundle\Console\Application.php:75
      3.3998   18394992   5. Symfony\Component\Console\Command\Command-&gt;run() D:\xampp\htdocs\soccertips\em-symfony\vendor\symfony\src\Symfony\Component\Console\Application.php:194
      3.4006   18395336   6. Symfony\Bundle\DoctrineFixturesBundle\Command\LoadDataFixturesDoctrineCommand-&gt;execute() D:\xampp\htdocs\soccertips\em-symfony\vendor\symfony\src\Symfony\Component\Console\Command\Command.php:224
      3.4056   18499160   7. Doctrine\Common\DataFixtures\Loader-&gt;loadFromDirectory() D:\xampp\htdocs\soccertips\em-symfony\vendor\bundles\Symfony\Bundle\DoctrineFixturesBundle\Command\LoadDataFixturesDoctrineCommand.php:97
      3.4084   18509624   8. require_once('D:\xampp\htdocs\soccertips\em-symfony\src\Soccer\MainBundle\DataFixtures\ORM\TeamFixtures.php') D:\xampp\htdocs\soccertips\em-symfony\vendor\doctrine-fixtures\lib\Doctrine\Common\DataFixtures\Loader.php:92
  </code></pre>
  </blockquote>
  
  <p>I understand the error message, but in my opinion, my <code>load()</code> method is compatible with the <code>FixtureInterface::load</code>.</p>
  
  <p>Could someone tell me, what I'm missing? I followed the tutorial step by step.</p>