Hi, I am in a bit of a pickle , I have to finish this today and I
have no idea why its not working
I have a students table and then a tracking table.
The tracking table stores the ids of the student being tracked and
the person tracking the student.
When a stdent gets deleted I also want the entries in tracking
deleted.
Are these models correct?
class Student extends AppModel
{
var $name = 'Student';
var $useTable = 'Students';
var $hasmany = array(
'Tracking' =>
array('className' => 'Tracking',
'foreignKey' => 'uid',
'conditions' => '',
'fields' => '',
'order' => '',
'limit' => '',
'offset' => '',
'dependent' => 'true',
'exclusive' => '',
'finderQuery' => '',
'counterQuery' => ''
)
);
}
class Tracking extends AppModel
{
var $name = 'Tracking';
var $useTable = 'Tracking';
var $belongsTo = array(
'Student' =>
array('className' => 'Student',
'foreignKey' => 'id',
'conditions' => '',
'fields' => '',
'order' => '',
'counterCache' => ''
),
);
}
Thanks in advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---