title: Binding Zend2 form data from doctrine2 ODM
body: <p>Is there a better way to bind data from a doctrine2 ODM entity class to a Zend2 form besides using <code>bind()</code>?</p>
  
  <p>If so, what would it be? Would I just retrieve the data as an array and pass each individual field? I am struggling with this and most likely making it harder than it needs to be.</p>
  
  <p>When I call the <code>bind()</code> function it outputs a Zend error referencing the default hydrator. Do I need to do something special in my entity class?</p>
  
  <p>Edit: Here are the exact errors Zend is throwing</p>
  
  <blockquote>
    <p>~\vendor\zendframework\zendframework\library\Zend\Stdlib\Hydrator\ArraySerializable.php:35</p>
    
    <p>Zend\Stdlib\Hydrator\ArraySerializable::extract expects the provided
    object to implement getArrayCopy()</p>
  </blockquote>
  
  <p>They make me think I need to either: </p>
  
  <ol>
  <li>use Zends hydrators (which I'd have to research how to implement) or </li>
  <li>use doctrine2's hydrators (which, I'd also have to figure out the best way to implement)</li>
  </ol>