 <p>Your class's constructor method should be called <code>__construct()</code>, not <code>__constructor()</code>:</p> <pre><code>public function __construct(EntityManager $entityManager) { $this-&gt;em = $entityManager; } </code></pre>