BEGIN110 3INSERT INTO ` master`.`orders` (`first_name`, `last_name`,
`email`, `phone`, `billing_address`, `billing_address2`, `billing_city`,
`billing_state`, `billing_zip`, `billing_country`, `shipping_address`,
`shipping_address2`, `shipping_city`, `shipping_state`, `shipping_zip`,
`shipping_country`, `order_type`, `order_item_count`, `weight`, `subtotal`,
`total`, `status`, `user_id`, `modified`, `created`, `id`) VALUES ('dave',
'', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'creditcard', 1,
'0.50', 29.99, 29.99, '1', '511358cd-6f84-4762-bfee-553ac09b532a',
'2013-02-06 23:33:39', '2013-02-06 23:33:39',
'511358d3-7dc4-4f6e-8736-553ac09b532a')111 4INSERT INTO `
master`.`order_items` (`product_id`, `name`, `weight`, `price`, `quantity`,
`subtotal`, `order_id`, `modified`, `created`, `id`) VALUES
('5111f132-03dc-403b-99c4-357ac09b532a', 'Demo Product One', '0.50', 29.99,
1, 29.99, '511358d3-7dc4-4f6e-8736-553ac09b532a', '2013-02-06 23:33:39',
'2013-02-06 23:33:39', '511358d3-4980-4e50-81a6-553ac09b532a')110 5COMMIT

 

If does not try to insert and values for those 2 fields.

 

Even manually tried a saveField after the initial Save()

 

$this->Product->Order->id = $this->Product->Order->getLastInsertID();

$this->Product->Order->saveField('trans-x', 'sgsdfsfsdf');

 

 

From: [email protected] [mailto:[email protected]] On Behalf
Of [email protected]
Sent: Thursday, February 07, 2013 3:18 AM
To: [email protected]
Subject: Re: Can not save two fields

 

What is the SQL that is generated from the save function?

Do you have a debugging environment set up so you can step through the code?

-- 
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 [email protected].
To post to this group, send email to [email protected].
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 [email protected].
To post to this group, send email to [email protected].
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