Tuesday, October 6, 2009

Changing field names, need help

Hello,

Select ..... Workflow.id as Fa, Workflow.name as Fb .......

How can this be done using the 'fields' parameter

for example
var $belongsTo = array(
'Workflow' => array(
'className' => 'Workflow',
'foreignKey' => 'workflow_id',
'conditions' => '',
'fields' => array('id','name'), // <-- Using this paramenter
'order' => ''
)
)

Please help,
Best Regards to all,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate