title: Symfony2 - Misd phonnumberbundle: Unable to transform value for property path "phone_number": Expected a \libphonenumber\PhoneNumber
body: <p>Below is my Entity,Form and DBAL config for misd-phonenumberbundle to integrate with Symfony2.8. But still I get the below error, Can someone let me know how to resolve this? I wrote few lines of code to convert the string to PhoneNumber obj then the form loads fine but my question is do we need to explicitly convert this? Is this not to be handled automatically?</p>
  
  <p><strong>Entity entries:</strong></p>
  
  <pre><code>/**
  * @ORM\Column(type="phone_number", nullable=true)
  * @AssertPhoneNumber(defaultRegion="US", message="Please specify a valid phone number")
  */
  private $phoneNumber;
  </code></pre>
  
  <p><strong>DBAL Mapping:</strong></p>
  
  <pre><code>doctrine:
  dbal:
  types:
  phone_number: Misd\PhoneNumberBundle\Doctrine\DBAL\Types\PhoneNumberType
  </code></pre>
  
  <p><strong>Form:</strong></p>
  
  <pre><code>-&gt;add('phoneNumber', PhoneNumberType::class, array('default_region' =&gt; 'US', 'format' =&gt; PhoneNumberFormat::NATIONAL, 'required' =&gt; false))
  </code></pre>
  
  <p><strong>Custom Code to handle the error:</strong>   </p>
  
  <pre><code>if($user-&gt;getphoneNumber()!="")
  {
     $util = $this-&gt;container-&gt;get('libphonenumber.phone_number_util');
     $phoneNUmber = $util-&gt;parse($user-&gt;getphoneNumber(), "US");
     $user-&gt;setphoneNumber($phoneNUmber);
  }
  else
  {
      $phoneNUmber = new \libphonenumber\PhoneNumber;
      $user-&gt;setphoneNumber($phoneNUmber);
  }
  
  Error:    
  </code></pre>
  
  <blockquote>
    <p>Uncaught PHP Exception Symfony\Component\Form\Exception\TransformationFailedException: Unable to transform value for property path "phone_number": Expected a \libphonenumber\PhoneNumber at webapp/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php line 1149</p>
  </blockquote>