CakePHP3 is not returning me the id after insert the entity. itemData contain an array with the field values and the row was inserted in the DB. Any ideas?
In Cake Documentation saids that this is the way. Saving Data
$item = $this->Items->newEntity($itemData);
if ($this->Items->save($item)) {
print_r($item->id);
}
Thanks!