Doctrine 2 get real class name of proxy class

Shousbash

New Member
The following:I have approximantely 20 models. These classes extend a base class. This base class contains a method which should be able to determine the classname of the child element. Normally you could this with:\[code\]get_called_class();\[/code\]But in many cases doctrine 2 uses ProxyClasses and in that case the get_called_class() function returns something like:\[code\]Proxies\BasePageElementProxy\[/code\]While the original name is \Base\PageElement. Can anybody tell me how I can find out what the name of this class is (without generating the name out of the string Proxies\BaseSectionProxy cause that is dirty and in many cases unreliable).
 
Back
Top