I am trying to produce a drop down menu list with values taken from a
database table.
I want the values displayed from the table to be unique even though
there are values in the database table are not.
At the moment I have repeated values showing in the drop down list.
How can I show a list of unique items to display in the drop down
menu ?
The code I am using to get the contents of the database is
'qualificationType' => new sfWidgetFormDoctrineChoice(
array(
'model' => 'EducationalQualifications',
'add_empty' => true,
'method' => 'getQualificationType',
'label' => 'Educational qualification'
)
),
The table is called EducationalQualifications. The code is held in
the
actions.class.php
Thank you Reto
--
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