#5527: displayField does not work ------------------------+--------------------------------------------------- Reporter: cemsbr | Owner: Type: Bug | Status: closed Priority: Medium | Milestone: 1.2.x.x Component: General | Version: RC3 Severity: Normal | Resolution: invalid Keywords: | Php_version: PHP 5 Cake_version: | ------------------------+--------------------------------------------------- Comment (by guigsilva):
Hello! I am new in Cake and probably I forgot something... But I canĀ“t make $displayField work, I read the docs and do something like this; processamento.php (model) class Processamento extends AppModel { var $name = 'Processamento'; var $displayField = 'mes'; } movimento.php (model) class Movimento extends AppModel { var $name = 'Movimento'; var $primaryKey = 'id'; //The Associations below have been created with all possible keys, those that are not needed can be removed var $belongsTo = array( 'Epocas' => array( 'className' => 'Epocas', 'foreignKey' => 'epocas_id', 'conditions' => '', 'fields' => '', 'order' => '' ), 'Processamentos' => array( 'className' => 'Processamentos', 'foreignKey' => 'processamentos_id', 'conditions' => '', 'fields' => '', 'order' => '' ) ); } But in the Movimento Add the list of Processamentos shows 'id' not 'mes', What I am doing wrong??? Thanks in advance Guilherme -- Ticket URL: <https://trac.cakephp.org/ticket/5527#comment:7> CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/> Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "tickets cakephp" group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~----------~----~----~----~------~----~------~--~---