title: extbase repository findAll() returns result null
body: <p>I have several Controllers like those: CategoryController and NewsController
  As well as the domain models for category and news and reposirtories for both.</p>
  
  <p>In the NewsController I do a dependencyInjection like this (the same way as in categoryController):</p>
  
  <pre><code>    /**
   * categoryRepository
   *
   * @var Tx_MyExtension_Domain_Repository_CategoryRepository
   */
  protected $categoryRepository;
  
  
      /**
   * injectCategoryRepository
   *
   * @param Tx_MyExtension_Domain_Repository_CategoryRepository $CategoryRepository
   * @return void
   */
  public function injectCategoryRepository(Tx_MyExtension_Domain_Repository_CategoryRepository $categoryRepository) {
      $this-&gt;categoryRepository = $categoryRepository;
  }
  </code></pre>
  
  <p>When I'm trying now in a function something like this:</p>
  
  <pre><code>    /**
   * action getCategoriesAjax
   *
   * @param Tx_MyExtension_Domain_Model_News
   * @return void
   */
  public function getCategoriesAjaxAction() {
      $categories = $this-&gt;categoryRepository-&gt;findAll();
      $this-&gt;view-&gt;assign('categories',$categories);
  }
  </code></pre>
  
  <p>I get an empty result back. </p>
  
  <p>The strange thing for me is, that if I'm doing this in the CategoryController, the same function works like charm and returns all elements in the database and even stranger for me is, that <strong>if I do a $this->categoryRepository->findByUid(1) I get the correct element as result</strong>.</p>
  
  <p>I also added to my categoryRepository a test function:</p>
  
  <pre><code>public function test(){
    $query = $this-&gt;createQuery();
    $result = $query-&gt;execute();
    $amount = $result.count();
  }
  </code></pre>
  
  <p>If I call this function from categoryController, I get back the correct amount of elements. If I'm calling this from my newsController I get "0" back... </p>
  
  <p>I don't get it... </p>
  
  <p>What do I miss??? 
  Where is my mistake?</p>