title: Creating an admin user using datafixtures and fosuserbundle
body: <p>I'm trying to create a new User Admin from a fixture. I'm using FOSUserBundle and Symfony2. </p>
  
  <pre><code>$userManager = $this-&gt;container-&gt;get('fos_user.user_manager');
  
  //$userAdmin = $userManager-&gt;createUser();
  
  $userAdmin = new UserAdmin();
  $userAdmin-&gt;setUsername('francis');
  $userAdmin-&gt;setEmail('francis@francis.com');
  $userAdmin-&gt;setEnabled(true);
  $userAdmin-&gt;setRoles(array('ROLE_ADMIN'));
  
  $userManager-&gt;updateUser($userAdmin, true);
  </code></pre>
  
  <p>I'm always getting this error:</p>
  
  <pre><code>[ErrorException]                                         
  Notice: Undefined property:     
  INCES\ComedorBundle\DataFixtures\ORM\LoadUserAdminData::$container in 
  /public_html/Symfony/src/INCES/ComedorBundle/DataFixtures/ORM/LoadUserAdminData.php line 16  
  </code></pre>