Micheal Kimsal's Blog: Symfony __toString() generation

Courtesy PHPDeveloper.org  Wed, 08/20/2008 - 11:14

Michael Kimsal has pointed out a small irritation when using the Symfony framework and models - an issue when using models that have relationships.

If there are relations (an Author has a Book, for example). the generated forms will complain that the generated Models need a __toString() method to be used in the Form/View.

In grails, this is the case, but every domain (corresponding to a Symfony 'model') has an implicit toString() method already generated, which return...


 

Reply

The content of this field is kept private and will not be shown publicly.