Still no luck with this mystery.

 

I dropped the db table and recreated it. Same thing, refuses to save those 2
fields. (Fields in bold in the array below)

So the fields are populated with the data, when I remove the debug / die it
saves everything except these 2 maddening fields!

 

public function beforeSave(){

                                

                debug($this->data['Order']);

                die();     

}

 

I dump the data before the save in the Order model:

 

/app/Model/Order.php (line 55) 

array(

                    'first_name' => 'Dave',

                    'last_name' => 'Dave',

                    'email' => 'd...@here.com',

                    'phone' => '555-555-5555',

                    'billing_address' => '123 King',

                    'billing_address2' => '',

                    'billing_city' => 'St Johns',

                    'billing_state' => 'NL',

                    'billing_zip' => '12345',

                    'billing_country' => 'CA',

                    'sameaddress' => '0',

                    'shipping_address' => 'Ship 1',

                    'shipping_address2' => 'Ship 2',

                    'shipping_city' => 'Ship City',

                    'shipping_state' => 'Ship State',

                    'shipping_zip' => 'Ship Zip',

                    'shipping_country' => 'Ship CA',

                    'order_type' => 'creditcard',

                    'order_item_count' => (int) 2,

                    'quantity' => (int) 10,

                    'weight' => '12.50',

                    'subtotal' => '349.90',

                    'total' => '349.90',

                    'shop' => (int) 1,

                    'status' => (int) 1,

                    'user_id' => '51145f50-3058-47cf-b7ef-61f0c09b532a',

                    'correlation_id' => 'e448a45e8d429',

                    'transaction_id' => '2LH603618P261513G',

                    'modified' => '2013-02-07 18:13:42',

                    'created' => '2013-02-07 18:13:42'

)

 

 

From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of crush
Sent: Thursday, February 07, 2013 4:36 AM
To: cake-php@googlegroups.com
Subject: Re: Can not save two fields

 

Make sure you delete the model caches, debug level 1 and maybe reload apache
to force it to recheck the DB and see the new fields. That's gotten me a few
times when it just wouldn't save something.

Also, just in case, you can do a $this->Model->save($this->request->data,
array('validate'=>false)); to make sure the validation is still not a
problem.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
--- 
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to