hai dear first of all thanks for helping me in finding Author class as u told ,but when i made the changes in author class in the lib/model.as stated and then i create a new article it shows the following error.
[RuntimeException] Class "Author" must implement a "__toString" method to be rendered in a "sfWidgetFormPropelSelect" widget. please help me out. On Feb 25, 8:21 pm, Martino Piccinato <[email protected]> wrote: > Author is a MODEL class, it represent objects of your domain problem > (the authors of the book), it should be in > lib/model > > AuthorForm is a class representing a form to insert/modify authors in > in db. It should be in lib/form > > __toString should be implemented in Author class just to give a > default "name" to Author(s) when doing code generated scaffolding. > > hope this clears up things :-) > > Martino > > > > On Wed, Feb 25, 2009 at 1:29 PM, Vikaash <[email protected]> wrote: > > > Hi, > > > i m going through the "the definite guide to symfony form" posted in > > symfony documentation.In the chapter 4 "the propel integration",i m > > facing a small problem. > > > "Implementing the __toString() method for the Author class" > > > class Author extends BaseAuthor > > { > > public function __toString() > > { > > return $this->getFirstName().' '.$this->getLastName(); > > } > > } > > > I m not getting where is this author class.If i do the above changes > > in AuthorForm class i get the error in application running.pls help me > > out of this.- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
