title: Extbase: inject repository into domain model
body: <p>I am currently working with Typo3 <code>6.2.10</code> and Extbase.</p>
  
  <p>I am trying to inject a repository into my domain model like this:
      
  
  <pre><code>class MyModel extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
      /**
       * @inject
       * @var \Vendor\Package\Domain\Repository\SomeRepository
       */
      protected $someRepository;
  }
  </code></pre>
  
  <p>However, <code>$this-&gt;someRepository</code> is always <code>null</code>. Injecting repositories into controllers always works though.</p>
  
  <p>Thank you in advance!</p>