[symfony-users] Re: Doctrine Form filter // getRelatedModelName

2010-09-17 Thread ziclo
I finaly found what i'm looking for : The solution was the use of the 'method' option which let me choose the field i want to display from the foreign table. Thanks public function configure() { $this-setWidgets(array( 'oid_cdp'= new sfWidgetFormDoctrineChoice(array('model' =

[symfony-users] Re: Doctrine Form filter // getRelatedModelName

2010-09-16 Thread ScherlOMatic
Hello! I think there is more than one solution for your problem. Try to overwrite the '_toString()' method in the model (TrackerManagerTable.class.php). Or create some own method and call it from whereever you want. Why are you implementing this logic in the filter class? BR On 16 Sep.,