title: Cakephp 3 model create
body: <p>In cakephp 2, while updating a table in a loop, to reset table id and data, I was using create and then making a save. <a href="http://book.cakephp.org/2.0/en/models/saving-your-data.html#model-create-array-data-array" rel="nofollow">http://book.cakephp.org/2.0/en/models/saving-your-data.html#model-create-array-data-array</a> </p>
  
  <pre><code>$data = array('username' =&gt; usernameArray[$i], 'age' =&gt; $ageArray[$i] );
  $this-&gt;Mytable-&gt;create();
  $this-&gt;Mytable-&gt;save($data);
  </code></pre>
  
  <p>Is there an equivalent function in Cakephp 3's new ORM, or does new database system handles this automatically ? </p>
  
  <p>To use remaining code I will use this code in a loop. Do I need a create function ?</p>
  
  <pre><code>$data = array('username' =&gt; usernameArray[$i], 'age' =&gt; $ageArray[$i] );
  $tableInstance = TableRegistry::get('Mytable');
  $entity = $tableInstance-&gt;newEntity($data);
  $tableInstance-&gt;save($entity);
  </code></pre>