244863 Posted September 2, 2010 Share Posted September 2, 2010 Model associations: assignment -> hasMany -> assignmentName assignment -> hasOne -> comment assignmentName -> belongsTo -> assignment comment -> belongsTo -> assignment $this->data: Array ( [TrsAssignmentName] => Array ( [0] => Array ( [employee_number] => 5458 [gc_staff_number] => 244863 [employee_name] => Iain Rose [course_code] => DR24 [course_description] => Standard and Response Driving ) ) [TrsAssignment] => Array ( [complete_by_date] => Array ( [day] => 02 [month] => 09 [year] => 2011 ) [assigned_by_employee_number] => 5458 [assigned_by_gc_staff_number] => 244863 [assigned_by_employee_name] => Iain Rose ) [TrsComment] => Array ( [text] => tyhtr ) ) Assignment Database: id char(36) Unchecked created datetime Unchecked assigned_by_employee_name varchar(255) Unchecked assigned_by_gc_staff_number int Unchecked assigned_by_employee_number int Unchecked complete_by_date datetime Unchecked modified datetime Checked AssignmentName Database: id char(36) Unchecked trs_assignment_id char(36) Unchecked employee_number int Unchecked employee_name varchar(255) Unchecked gc_staff_number int Unchecked created datetime Checked modified datetime Checked status varchar(255) Checked course_code varchar(50) Unchecked course_description varchar(255) Unchecked Comments Database: id char(36) Unchecked text text Unchecked trs_assignment_id char(36) Unchecked WHY WON'T THIS saveAll() IN THE ASSIGNMENTS CONTROLLER???????? Quote Link to comment https://forums.phpfreaks.com/topic/212343-cakephp-saveall-not-working/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.