title: How to access Entity class from Sonata Admin's Admin class?
body: <p>Let me explain: I have an Entity class Item with a method getName() in it, namespace App\Entity. I have an admin class for it in Sonata Admin, namespace App\Admin, and would like to call that method from within, how to do so? </p>
  
  <pre><code>//Symfony2 Entity
  ...
  class Item
  {
      public function getName(){
           return $this-&gt;name;
      }
  }
  
  ...
  //Sonata Admin class
  class ItemAdmin extends Admin
  {
    ...
    protected function configureListFields(ListMapper $listMapper){
       //how to access Item class' getName() method from here?
    }
  }
  </code></pre>
  
  <p><strong>EDIT:</strong> This works inside configureListFields(), but what about without find() and if with find() only, then how to automatically get 'id'?</p>
  
  <pre><code> $item=$this-&gt;getConfigurationPool()-&gt;getContainer()-&gt;get('Doctrine')-&gt;getRepository('AppBundle:Item')-&gt;find('15');
   echo $item-&gt;getName();
  </code></pre>