Although it's not failing Cake's validation is it breaking any database rules 
or unique indexes?

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 7 Feb 2013, at 03:18:43, "Advantage+" <movepix...@gmail.com> wrote:

> I am stumped why 2 fields in my db refuse to save any data.
>  
>  
> Inside my save()
>  
> if( $process['ACK'] == 'Success'){
> //debug($process);
>                                                                               
>  
>                 $order['Order']['transaction'] = $process['TRANSACTIONID'];
>                 $order['Order']['correlation'] = $process['CORRELATIONID'];
>                                                                               
>  
>                                                                               
>  
>                 //debug($order);
>                 //die();
>                                                                               
>  
>                                                                               
>  
>                 $save = $this->Product->Order->saveAssociated($order);
>                 //$save = $this->Product->Order->saveAll($order);
>  
>  
> No matter what it will not save these two fields, transaction and 
> correlation. I have removed all validation, all the other fields save.
>  
> Debug shows 
> array(
>                     'TIMESTAMP' => '2013-02-07T03:14:09Z',
>                     'CORRELATIONID' => '33ad86af8f701',
>                     'ACK' => 'Success',
>                     'VERSION' => '95',
>                     'BUILD' => '5060305',
>                     'AMT' => '179.95',
>                     'CURRENCYCODE' => 'USD',
>                     'AVSCODE' => 'X',
>                     'CVV2MATCH' => 'M',
>                     'TRANSACTIONID' => '35U47260N8975103S'
> )
>  
>  
> and
>  
> 'Order' => array(
>                                          …….
>                                          'user_id' => 
> '51131bfc-9208-4253-a0cb-2691c09b532a',
>                                          'transaction' => '35U47260N8975103S',
>                                          'correlation' => '33ad86af8f701'
>                     )
>  
> Seems so simple that its just crazy!
>  
> Any ideas?
>  
> Dave
>  
> 
> -- 
> 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