title: Symfony2 $user->setPassword() updates password as plain text [DataFixtures + FOSUserBundle]
body: <p>I'm trying to pre-populate a database with some User objects, but when I call <code>$user-&gt;setPassword('some-password');</code> and then save the user object, the string 'some-password' is stored directly in the database, instead of the hashed+salted password.</p>
  
  <p>My DataFixture class:</p>
  
  <pre><code>// Acme/SecurityBundle/DataFixtures/ORM/LoadUserData.php
  &lt;?php
  
  namespace Acme\SecurityBundle\DataFixtures\ORM;
  
  use Doctrine\Common\DataFixtures\FixtureInterface;
  use Doctrine\Common\Persistence\ObjectManager;
  
  use Acme\SecurityBundle\Entity\User;
  
  class LoadUserData implements FixtureInterface
  {
      public function load(ObjectManager $manager)
      {
          $userAdmin = new User();
          $userAdmin-&gt;setUsername('System');
          $userAdmin-&gt;setEmail('system@example.com');
          $userAdmin-&gt;setPassword('test');
  
          $manager-&gt;persist($userAdmin);
          $manager-&gt;flush();
      }
  }
  </code></pre>
  
  <p>And the relevant database output:</p>
  
  <pre><code>id  username    email               salt                                password
  1   System      system@example.com  3f92m2tqa2kg8cookg84s4sow80880g     test
  </code></pre>