Jump to content

CakePHP saveAll() not working???


Recommended Posts

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????????

Link to comment
https://forums.phpfreaks.com/topic/212343-cakephp-saveall-not-working/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.