title: Get entity name from class object
body: <p>I have the following code: </p>
  
  <pre><code>namespace Acme\StoreBundle\Entity;
  
  use Doctrine\ORM\Mapping as ORM;
  
  /**
   * Acme\StoreBundle\Entity\User
   *
   * @ORM\Table(name="users")
   * @ORM\Entity()
   */
  class User {
  ...
  }
  
  $user = new User();
  </code></pre>
  
  <p>Does anybody know how I can now get the entity name (<code>AcmeStoreBundle:User</code>) from the <code>User</code> object?</p>