These 2 fields are unique to the site so they are nowhere else if that is
what you mean. 

And all the other fields for the relations get saved.

 

It just does not want to pay any attention to these new fields.

 

 

From: [email protected] [mailto:[email protected]] On Behalf
Of Jeremy Burns | Class Outfit
Sent: Thursday, February 07, 2013 12:19 AM
To: [email protected]
Subject: Re: Can not save two fields

 

Do you have all the required joining fields in your array when you are
saving it - in other words, can Cake determine where and how to save it?


Jeremy Burns

Class Outfit

http://www.classoutfit.com 

 

On 7 Feb 2013, at 03:27:55, "Advantage+" <[email protected]> wrote:





I tried changing the Varchars(255), CHAR(36) all kinds. No index set on
either field, null, not null and even when set to NN the record saves,
thinking it should at least fail there since it must have some value..no?

 

Even tried with the fields set to CHAR(36) and:

 

$order['Order']['transaction'] = String::uuid();

 $order['Order']['correlation'] = String::uuid();

 

If just has no time for these 2 fields L

 

From: [email protected] [mailto:[email protected]] On Behalf
Of Jeremy Burns | Class Outfit
Sent: Wednesday, February 06, 2013 11:53 PM
To: [email protected]
Subject: Re: Can not save two fields

 

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> http://www.classoutfit.com

 

On 7 Feb 2013, at 03:18:43, "Advantage+" < <mailto:[email protected]>
[email protected]> 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>
https://www.facebook.com/CakePHP
Find us on Twitter  <http://twitter.com/CakePHP> 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  <mailto:[email protected]>
[email protected].
To post to this group, send email to  <mailto:[email protected]>
[email protected].
Visit this group at  <http://groups.google.com/group/cake-php?hl=en>
http://groups.google.com/group/cake-php?hl=en.
For more options, visit  <https://groups.google.com/groups/opt_out>
https://groups.google.com/groups/opt_out.
 
 

 

-- 
Like Us on FaceBook  <https://www.facebook.com/CakePHP>
https://www.facebook.com/CakePHP
Find us on Twitter  <http://twitter.com/CakePHP> 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  <mailto:[email protected]>
[email protected].
To post to this group, send email to  <mailto:[email protected]>
[email protected].
Visit this group at  <http://groups.google.com/group/cake-php?hl=en>
http://groups.google.com/group/cake-php?hl=en.
For more options, visit  <https://groups.google.com/groups/opt_out>
https://groups.google.com/groups/opt_out.
 
 

 

-- 
Like Us on FaceBook  <https://www.facebook.com/CakePHP>
https://www.facebook.com/CakePHP
Find us on Twitter  <http://twitter.com/CakePHP> 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  <mailto:[email protected]>
[email protected].
To post to this group, send email to  <mailto:[email protected]>
[email protected].
Visit this group at  <http://groups.google.com/group/cake-php?hl=en>
http://groups.google.com/group/cake-php?hl=en.
For more options, visit  <https://groups.google.com/groups/opt_out>
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.
 
 

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