I want to access the Symfony2 entity methods dynamically by calling it s object. For Instance:
$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;
}
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.