[symfony-users] Re: multiselect values

2009-11-04 Thread lorenx
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() >

[symfony-users] Re: multiselect values

2009-11-04 Thread Alexandre SALOME
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',

[symfony-users] Re: multiselect values

2009-11-04 Thread lorenx
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