Thursday, February 7, 2013

RE: Can not save two fields

No, from the beginning they were as you see now, then in talks last night we
changed the 2 fields in question to something without _ underscore to see if
anything happened but the $order['Order'][fields] matched up all the same in
the controller to db.

These are not fields in the form, authorization / transaction info sent back
from merchant account based on successful payment so just manually adding it
to the data to be saved.

if( $process_payment['ACK'] === 'Success'){

$order['Order']['correlation_id'] =
$process_payment['CORRELATIONID'];
$order['Order']['transaction_id'] =
$process_payment['TRANSACTIONID'];
}

And rest of the code.......

$save = $this->Order->saveAssociated($order,array('validate'=>false) );

-----Original Message-----
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of lowpass
Sent: Thursday, February 07, 2013 11:19 PM
To: cake-php@googlegroups.com
Subject: Re: Can not save two fields

On Thu, Feb 7, 2013 at 9:18 PM, Advantage+ <movepixels@gmail.com> wrote:
>
> 'correlation_id' => 'e448a45e8d429',
> 'transaction_id' => '2LH603618P261513G',

Earlier you said the fields were correlation and transaction, but here
they're correlation_id and transaction_id. I'm guessing your form inputs use
the latter names and Cake is dropping them because they don't match the
schema.

--
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+unsubscribe@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+unsubscribe@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.

No comments: