How to display the "instanceof" in symfony2 on screen
===

ON my page i want to know that my object is the instance of which class.

Like

i have the

`class user {  }`

`class driver extends user {}`

I want to find out that when user is logged then whether symfony creates the instance of user or driver