On Tue, 6 May 2008 23:48:01 -0700 (PDT) kusum <[EMAIL PROTECTED]> wrote:
> > hi > i am joining two table a and b.i want to print the data of b > table.how i can do this in symfony. > it is giving error. > > > Object of class "b" cannot be converted to string (Please create a > __toString() method) "b" is probably an object and an object cannot be printed. Either print out its attributes with $b->getFirstName()." ".$b->getWhateverElse() or add the suggested "public function __toString()" to lib/model/B.php which does the same thing. bye, -christian- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
