Hello Everyone,
Using Scaffold,
I Have a Model "Event" that belongsTo Result.
The Problem is when i edit an Event How can i filter Results so that
only rows ( Records ) with a especific condition, like
Result.is_final=1, are available for select.
class EventsController extends AppController {
var $name = 'Events';
var $components=array("auth");
var $scaffold;
}
class Event extends AppModel
{
var $name = 'Event';
var $displayField= 'description';
var $belongsTo=array('Pool','Result' => array(
'className' => 'Result',
'foreignKey' => 'result_id'
));
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---