title: Generating Doctrine fixture data for Nested Set entity with Alice Fixtures
body: <p>I'm using <a href="https://github.com/hautelook/AliceBundle" rel="nofollow"><code>hautelook/AliceBundle</code></a> (which uses <a href="https://github.com/nelmio/alice" rel="nofollow"><code>nelmio/alice</code></a> and <a href="https://github.com/fzaninotto/Faker" rel="nofollow"><code>fzaninotto/Faker</code></a>) to generate fixtures for an application. I have a Doctrine entity <code>Group</code> which is a nested set entity (using the Tree functionality provided by <a href="http://symfony.com/doc/master/bundles/StofDoctrineExtensionsBundle/index.html" rel="nofollow">StofDoctrineExtensionsBundle</a>). What I can't figure out is how I can generate fixture data for the nested set entity - making sure that groups are generated as a tree with accurate root IDs and parents. Thanks for any guidance.</p>
  
  <p>My current fixture file is as simple as;</p>
  
  <pre><code>MyBundle\Entity\Group:
    group{1..25}:
      title: &lt;word()&gt;
  </code></pre>