title: Why does remove() consider my Entity an array
body: <p>Why does Symfony not recognize my entity as an entity? As seen in #2 Symfony knows the class, and doctrine should too since it is able to find the News Entity.</p>
  
  <pre><code> /**
   * 
   * @Route("/news/delete/{id}", name="news_delete")
   */
  public function deleteAction($id) {
  
      $toDelete = new News();
  
      $em = $this-&gt;getDoctrine()-&gt;getManagers();
  
      $toDelete = $this-&gt;getDoctrine()
                  -&gt;getRepository('AppBundle:News')
                  -&gt;findOneBy(array('id' =&gt; $id));
  
      dump($toDelete); //Posted under #1
      dump(get_class($toDelete)); //Posted under #2
      $em-&gt;remove($toDelete);
      $em-&gt;flush();
  
      return $this-&gt;redirectToRoute('news_show', array(), 301);
  }
  
  
  
  #1:   
  News {#926 ▼
        -id: 16
        +headline: "1313"
        +newsBody: "12313"
        +date: DateTime {#1027 ▶}
        +archiveDate: DateTime {#921 ▶}
        -categories: PersistentCollection {#934 ▶}
      }
  
  #2:
  "AppBundle\Entity\News"
  </code></pre>
  
  <p><strong>EDIT:</strong>
  Error: Call to a member function remove() on array</p>