title: Cakephp rest put method doesn't update in Database
body: <p>I am attempting to write a RESTful service using CakePHP 3.2 by follow this guide <a href="http://book.cakephp.org/3.0/en/development/rest.html" rel="nofollow">http://book.cakephp.org/3.0/en/development/rest.html</a></p>
  
  <p>every function works just fine except edit() when i tested in Postman using PUT method it has returned "Saved" but nothing is changed in Mysql Database </p>
  
  <p>I'm not sure is it about Code , MySql or Server Configuration ?</p>
  
  <pre><code> public function edit($id){
      $appointmentType = $this-&gt;AppointmentType-&gt;get($id);
      if ($this-&gt;request-&gt;is(['post', 'put'])) {
          $appointmentType = $this-&gt;AppointmentType-&gt;patchEntity($appointmentType, $this-&gt;request-&gt;data);
          if ($this-&gt;AppointmentType-&gt;save($appointmentType)) {
              $message = 'Saved';
          } else {
              $message = 'Error';
          }
      }
      $this-&gt;set([
          'message' =&gt; $message,
          '_serialize' =&gt; ['message']
      ]);
  }
  </code></pre>