perfect, thanks!
On Nov 4, 1:40 pm, Alexandre SALOME
wrote:
> Have a look at sfDoctrineRecord class, in
> symfony/lib/plugins/sfDoctrinePlugin/lib/record
>
> Every record class inherits from it.
>
> There is a method __toString() on it and the magic is there :
>
> public function __toString()
>
Have a look at sfDoctrineRecord class, in
symfony/lib/plugins/sfDoctrinePlugin/lib/record
Every record class inherits from it.
There is a method __toString() on it and the magic is there :
public function __toString()
{
$guesses = array('name',
'title',
i understood that, since both group and credential model has a "name"
attribute, getName() is called by default.
i had to add a __toString() method in the user model that returns its
getName() and now it works.
but i didn't find where this magic is...
thanks anyway.
On Nov 3, 9:18 pm, lorenx wr