title: Symfony2 - How to access entity methods dynamically?
body: <p>I want to access the Symfony2 entity methods dynamically by calling it's object. 
  For Instance:</p>
  
  <pre><code>$entityObj = new Products();
  
  // Generic Table Processor to process the table data    
  private function tableProcessor($entityObject){
  
      // how can I get all the Entity methods inside the Products Entity????
  
      // e.g; $entityObject.getMethods();   // should return all the methods?
  
      return $entityObject;
  }
  </code></pre>
  
  <p>If sorted out! 
  I'm sure this procedure gonna help me a lot in writing less code, which otherwise I'll have to write for more than 10-20 entities.</p>