Symfony – using isset on sfOutputEscaperObjectDecorator

August 18th, 2011 § 0 comments § permalink

Have you tried isset function on doctine object from  template? Something like this?

   If you tried this you will know that isset will return only false. Because the Doctrine Object is wrapped with sfOutputEscaperObjectDecorator. So if you like to check the presence of a property then you should use something like this.

Happy coding