2012-02-15 15 views
0

나 자신의 삶에서 나는 무엇이 잘못 될지 알 수 없다. $order->save 연산의 값을 디버깅 할 때 1 (이는 true을 의미 함)으로 표시됩니다.cakephp가 데이터를 저장하지 않음

$order = $this->Order->find('first', array(
    'conditions' => array('Order.token' => urldecode($token)) 
)); 

debug($order); 

$this->Order->id = $order['Order']['id']; 
$orderData = array('Order' => array(
    'id' => $order['Order']['id'], 
    'billing_email' => urldecode($payPalResponse['EMAIL']), 
    'billing_name' => urldecode($payPalResponse['PAYMENTREQUEST_0_SHIPTONAME']), 
    'billing_address' => urldecode($payPalResponse['PAYMENTREQUEST_0_SHIPTOSTREET']), 
    'billing_city' => urldecode($payPalResponse['PAYMENTREQUEST_0_SHIPTOCITY']), 
    'billing_state' => $payPalResponse['PAYMENTREQUEST_0_SHIPTOSTATE'], 
    'billing_zipcode' => $payPalResponse['PAYMENTREQUEST_0_SHIPTOZIP'] 
)); 
debug($orderData); 
$this->Order->save($orderData); 

을 그리고 여기에 내가 갖는 내용은 다음과 같습니다 : 여기에 내가 뭘하는지의

controllers/markets_controller.php (line 149) 
Array 
(
    [Order] => Array 
     (
      [id] => 13 
      [token] => ************** 
      [player_id] => 1 
      [status_id] => 1 
      [timestamp] => 2012-02-15 12:09:24 
      [date_filled] => February 15, 2012 
     ) 

    [OrderItem] => Array 
     (
     ) 

) 

controllers/markets_controller.php (line 161) 
Array 
(
    [Order] => Array 
     (
      [id] => 13 
      [billing_email] => *********@************.com 
      [billing_name] => Test User 
      [billing_address] => 1 Main St 
      [billing_city] => San Jose 
      [billing_state] => CA 
      [billing_zipcode] => 95131 
     ) 

) 

왜 그것이 절약의 내게 말하고 있지만, 그렇지 않아?

답변

0

좋아요, 이전에 캐시를 지우려고했는데 어떤 이유로 그것이 해결되지 않았습니다. 마지막으로 Order 모델의 캐시 파일을 지우고 수정했습니다.

관련 문제