title: How do you get the last insert ID in CakePHP 3.0?
body: <p>Working with the CakePHP 3.0 beta, seems like a simple problem, but I've searched through the docs and can't find anything. After inserting a new record using $this->Model->save(), I'd like to the get the auto_increment primary key ID of the newly created record.</p>
  
  <p>With Cake 2.x, I could do:</p>
  
  <pre><code>$record_id=$this-&gt;ModelName-&gt;id;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>$record_id=$this-&gt;ModelName-&gt;getLastInsertID();
  </code></pre>
  
  <p>However neither of those seems to work in CakePHP 3.0.</p>
  
  <p>Thanks</p>