title: Zend Framework 2 - Hydrator strategy not responding and hydrating
body: <p>I implemented basically <a href="https://github.com/zendframework/zf2/pull/2072" rel="nofollow">this strategy</a>.</p>
  
  <p>The main difference is (I guess) that I use <code>Doctrine2</code>.</p>
  
  <p>The constructor class is called (a test echo is printed) but the two functions <code>extract()</code> and <code>hydrate()</code> are not.</p>
  
  <p>I added the strategy as follows:</p>
  
  <pre><code>$hydrator = new DoctrineEntity($entityManager);
  $hydrator-&gt;getHydrator()-&gt;addStrategy('my_attribute', new MyHydrationStrategy());
  $form-&gt;setHydrator($hydrator);
  </code></pre>
  
  <p>A kind-of similar issue was <a href="https://github.com/doctrine/DoctrineORMModule/issues/93" rel="nofollow">posted here</a>.</p>
  
  <p>Maybe the problem is in the way how I add this strategy. But I honestly don't know...</p>
  
  <p>Would be great if somebody could give me a hint what I'm doing wrong.</p>