title: cakephp: saveAll is not working
body: <p>The saveAll is not working can some one help me in finding what is the problem.I have included the controller's action, the array passed to saveAll and the model of it.</p>
  
  <p>The controllers action containing the saveAll looks like the following-</p>
  
  <pre><code>public function add_customer_order() {
      if ($this-&gt;request-&gt;is('post')) {
                        -
                        -
                        -
                        -
                     $this-&gt;CustomerOrderItem-&gt;create();
                     if ($this-&gt;CustomerOrderItem-&gt;saveAll($customer_order_item)) {
                          $this-&gt;Session-&gt;setFlash('The customer order Items has been saved successfully.', 'default/flash_success');
                       }
                  else {
                      $this-&gt;Session-&gt;setFlash('The customer order Items not been saved successfully.', 'default/flash_success');
                  }
      }
  
  }
  </code></pre>
  
  <p>The array $customer_order_item looks as follows-</p>
  
  <pre><code>array(
      'CustomerOrderItem' =&gt; array(
          (int) 0 =&gt; array(
              'id' =&gt; '',
              'quantity' =&gt; '400',
              'unit_cost' =&gt; '77',
              'pending_quantity' =&gt; '400',
              'packaging_configuration_quantity' =&gt; '20',
              'exercise_duty_id' =&gt; '0',
              'tax_id' =&gt; '5',
              'customer_order_id' =&gt; '',
              'master_article_id' =&gt; '22'
          ),
          (int) 1 =&gt; array(
              'id' =&gt; '',
              'quantity' =&gt; '200',
              'unit_cost' =&gt; '77',
              'pending_quantity' =&gt; '200',
              'packaging_configuration_quantity' =&gt; '20',
              'exercise_duty_id' =&gt; '0',
              'tax_id' =&gt; '5',
              'customer_order_id' =&gt; '',
              'master_article_id' =&gt; '25'
          ),
          (int) 2 =&gt; array(
              'id' =&gt; '',
              'quantity' =&gt; '400',
              'unit_cost' =&gt; '77',
              'pending_quantity' =&gt; '400',
              'packaging_configuration_quantity' =&gt; '20',
              'exercise_duty_id' =&gt; '1',
              'tax_id' =&gt; '5',
              'customer_order_id' =&gt; '',
              'master_article_id' =&gt; '23'
          ),
          (int) 3 =&gt; array(
              'id' =&gt; '',
              'quantity' =&gt; '200',
              'unit_cost' =&gt; '77',
              'pending_quantity' =&gt; '200',
              'packaging_configuration_quantity' =&gt; '20',
              'exercise_duty_id' =&gt; '1',
              'tax_id' =&gt; '5',
              'customer_order_id' =&gt; '',
              'master_article_id' =&gt; '24'
          ),
          (int) 4 =&gt; array(
              'id' =&gt; '',
              'quantity' =&gt; '200',
              'unit_cost' =&gt; '77',
              'pending_quantity' =&gt; '200',
              'packaging_configuration_quantity' =&gt; '20',
              'exercise_duty_id' =&gt; '1',
              'tax_id' =&gt; '5',
              'customer_order_id' =&gt; '',
              'master_article_id' =&gt; '27'
          )
      )
  )
  </code></pre>
  
  <p>The model looks as follows-</p>
  
  <pre><code>&lt;?php
  App::uses('AppModel', 'Model');
  /**
   * CustomerOrderItem Model
   *
   * @property CustomerOrder $CustomerOrder
   * @property MasterArticle $MasterArticle
   */
  class CustomerOrderItem extends AppModel {
  
  /**
   * Validation rules
   *
   * @var array
   */
      public $validate = array(
          'customer_order_id' =&gt; array(
              'numeric' =&gt; array(
                  'rule' =&gt; array('numeric'),
                  //'message' =&gt; 'Your custom message here',
                  //'allowEmpty' =&gt; false,
                  //'required' =&gt; false,
                  //'last' =&gt; false, // Stop validation after this rule
                  //'on' =&gt; 'create', // Limit validation to 'create' or 'update' operations
              ),
          ),
          'master_article_id' =&gt; array(
              'numeric' =&gt; array(
                  'rule' =&gt; array('numeric'),
                  //'message' =&gt; 'Your custom message here',
                  //'allowEmpty' =&gt; false,
                  //'required' =&gt; false,
                  //'last' =&gt; false, // Stop validation after this rule
                  //'on' =&gt; 'create', // Limit validation to 'create' or 'update' operations
              ),
          ),
      );
  
      //The Associations below have been created with all possible keys, those that are not needed can be removed
  
  /**
   * belongsTo associations
   *
   * @var array
   */
      public $belongsTo = array(
          'CustomerOrder' =&gt; array(
              'className' =&gt; 'CustomerOrder',
              'foreignKey' =&gt; 'customer_order_id',
              'conditions' =&gt; '',
              'fields' =&gt; '',
              'order' =&gt; ''
          ),
          'MasterArticle' =&gt; array(
              'className' =&gt; 'MasterArticle',
              'foreignKey' =&gt; 'master_article_id',
              'conditions' =&gt; '',
              'fields' =&gt; '',
              'order' =&gt; ''
          )
      );
  }
  </code></pre>