title: Cannot reference Alice fixture in EntityContext following step (KnpLabs/FriendlyContexts) - Behat
body: <p>I use the really cool <a href="https://github.com/KnpLabs/FriendlyContexts" rel="nofollow">knplabs/friendlycontexts</a> bundle to test <a href="https://github.com/victoire/victoire" rel="nofollow">VictoireDCMS, a Symfony2 open source DCMS</a>.</p>
  
  <p>Actually, this is working pretty well in spite of the kind of my project (not a basic symfony-project architecture but a suite of bundles with a functionnal test application). </p>
  
  <p>But... I'm now blocked to use alice reference in the EntityContext. The <a href="https://github.com/KnpLabs/FriendlyContexts/blob/master/doc/context-alice.md#entity-context" rel="nofollow">documentation</a> give these examples :</p>
  
  <h1>user.yml</h1>
  
  <pre><code>App\Entity\User:
      user-john:
          firstname: John
          lastname: Doe
      user-admin:
          firstname: Admin
          lastname: Admin
  </code></pre>
  
  <h2>my.feature</h2>
  
  <pre><code>@alice(User)
  Feature: My feature
      The feature description
  
      Background:
          Given the following products
              | name  | user  |
              | Ball  | John  |
              | Shoes | Admin |
  
      ...
  </code></pre>
  
  <p>This is really looking good and is exactly what I want to do and here is my code: </p>
  
  <h2>template.yml <a href="https://github.com/lenybernard/victoire/blob/474d97d08c1327d4fb2754ffe302f44cd9b15f18/Tests/Functionnal/src/Acme/AppBundle/DataFixtures/Seeds/ORM/View/template.yml#L2" rel="nofollow">(full file)</a></h2>
  
  <pre><code>Victoire\Bundle\TemplateBundle\Entity\Template:
      template_base:
          name: Base
          ...
  </code></pre>
  
  <h2>my.feature <a href="https://github.com/lenybernard/victoire/blob/474d97d08c1327d4fb2754ffe302f44cd9b15f18/Tests/Features/Page/create.feature#L22" rel="nofollow">(full file)</a></h2>
  
  <pre><code>Given the following page:
      | name      | slug     | locale | template |
      | tatooine  | tatooine | fr     | base     |
  </code></pre>
  
  <p>Unfortunatelly, it doesn't work properly and I have this error when I run my feature :</p>
  
  <blockquote>
    <p>Expected value of type
    "Victoire\Bundle\TemplateBundle\Entity\Template" for association field
    "Victoire\Bundle\PageBundle\Entity\BasePage#$template", got "string"
    instead. (Doctrine\ORM\ORMInvalidArgumentException)</p>
  </blockquote>
  
  <p>I can't figure this out and can't see any difference btw the example and my code... Any help would be appreciated.</p>