title: data is not saving into the database in Cakephp
body: <p>i am working on a Cakephp 2.x .. i am sending data from my android app to my Cakephp web app through HTTP Post and then saving into the database..</p>
  
  <p>here is my code</p>
  
  <pre><code>     public function message(){
         $this-&gt;loadModel('Message');
  
      if ($this-&gt;request-&gt;isPost()){
  
          $json = $this-&gt;request-&gt;data('json');
  
          $data = json_decode($json, TRUE);    
  
          foreach($data as $datas){
  
              $mobileNo = $datas['mobileNo'];
              $body = $datas['body'];
  
              $type = $datas['type'];
              $userId = $datas['idUser'];
  
              $this-&gt;request-&gt;data['Message']['mobileNo'] = $mobileNo;
              $this-&gt;request-&gt;data['Message']['body'] = $body;
              $this-&gt;request-&gt;data['Message']['type'] = $type;
              $this-&gt;request-&gt;data['Message']['User_id'] = $userId;
              $this-&gt;request-&gt;data['Message']['dateTime'] = null;
              $this-&gt;Message-&gt;save($this-&gt;request-&gt;data);
          }
      }
   }
  </code></pre>
  
  <p>i am getting data successfully because when i print out the data </p>
  
  <pre><code>       $mobileNo = $datas['mobileNo'];
  </code></pre>
  
  <p>it is successfully printing the number ... but dont know why it is throwing me errors on my android app and not saving the data into the database ... i think the problem is related to the Model <strong>'Message'</strong></p>