I have a model similar to this...
<?php
class User extends AppModel{
$belongsTo = array(
'Editor' => array(
'conditions' => array('editor'=>1)
)
);
}
?>
I was wondering if I wanted to create a drop down list of this
particular relationship, whats the best way to do it?
could I do something simular to this as a function in the model
function editorList(){
return $this->Editor->find('all');
}
should it keep the conditions I specified in the $belongsTo
relationship or should I approach this some other way?
Thanks
Jen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---