title: Load a class inherted from doctrine model using doctrine_query
body: <p>I have 2 classes</p>
  
  <pre><code>Class form extends Baseform
  {
          /* this is doctrine model class */
  }
  </code></pre>
  
  <p>Below is the Inherited Class</p>
  
  <pre><code>Class admissionForm extends form
  {
          /* this is inherited class */
  }
  </code></pre>
  
  <p>I am trying to query database using <strong>doctrine_query</strong> and search for <strong>form</strong> model. Based on my results I want objects of <strong>admissionForm</strong> class instead of <strong>form</strong> class.</p>
  
  <p>I have tried using <strong>serialize</strong> and <strong>unserialize</strong> functions of doctrine like below but it replace <strong>$admissionFormObj</strong> with an instance of form class.</p>
  
  <pre><code>$admissionFormObj-&gt;unserialize($formObj-&gt;serialize());
  </code></pre>