12.26
php
saved
jbourassa
Note
jbourassa did not leave a note
jbourassa did not leave a note
- //Model
- class Evaluation extends AppModel {
- var $name = 'Evaluation';
- var $displayField = 'desc';
- 'pattern' => '%s, %s (%s)'
- ));
- //The Associations below have been created with all possible keys, those that are not needed can be removed
- 'foreignKey' => 'utilisateur_id',
- 'conditions' => '',
- 'fields' => '',
- 'order' => ''
- )
- );
- //and more associations
- //Controller
- $this->set('evaluation', $this->Autorisation->Evaluation->find('list'));
- //Resulting sql :
- /* SELECT `Evaluation`.`id`, `Utilisateur`.`nom`, `Utilisateur`.`prenom`, `Utilisateur`.`matricule` FROM `evaluations` AS `Evaluation` WHERE 1 = 1 */
Parsed in 0.038 seconds, using GeSHi 1.0.7.14