title: Symfony entities without relational
body: <p>I work with Symfony2 and Doctrine and I have a question regarding entities.</p>
  
  <p>In a performance worries, I'm wondering if it is possible to use an entity without going all the associations?</p>
  
  <p>Currently, I have not found another way to create a model inheriting the class with associations and associations specify NULL in the class that inherits.</p>
  
  <p>thank you in advance</p>
  
  <hr>
  
  <p>OK, a little detail, it's for a API REST (JSON).</p>
  
  <p>This is my class : </p>
  
  <pre><code>/**
   * Offerequipment
   *
   * @ORM\Table(name="offer_equipment")
   * @ORM\Entity(repositoryClass="Charlotte\OfferBundle\Repository\Offerequipment")
  */
  
  class Offerequipment
  {
  /**
   * @var integer
   *
   * @ORM\Column(name="id", type="integer")
   * @ORM\Id
   * @ORM\GeneratedValue(strategy="AUTO")
   */
  private $id;
  
  /**
   * @ORM\ManyToOne(targetEntity="Charlotte\OfferBundle\Entity\Offer")
   * @ORM\JoinColumn(name="offer_id", referencedColumnName="id")
   */
  private $offer;
  
  /**
   * @ORM\ManyToOne(targetEntity="Charlotte\ProductBundle\Entity\Equipment")
   * @ORM\JoinColumn(name="equipment_id", referencedColumnName="id")
   */
  private $equipment;
  
  /**
   * @VirtualProperty
   *
   * @return String
   */
  public function getExample()
  {
     return $something;
  }
  </code></pre>
  
  <p>and with QueryBuilder method, i can't get my virtual properties or getters.</p>
  
  <p>Thanks for your help :)</p>