On Tue, 1 Jun 2010, Alexandru-Emil Lupu wrote:

> Find the "alias" that you are using to reference those 2 models, and just do
> a plain __toString in your *paiement table
> 
> Like
> class paiment extends BasePaiment
> {
> public function __toString()
> {
> return $this->getPerson()->__toString();
> }
> }

Shouldn't __toString() get invoked automagically if you try to echo/print 
getPerson() ? Its a magic method right?



-- 


-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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

Reply via email to