CakePHP 3.0 Can't save hasMany associated data
问题 I've problem when saving data with hasMany association This is my table 1) post table: each item has an unique id. id | title | ... 1 | Aloha | ... 2) images table id | post_id | image | ... 1 | 1 | abc.jpg | ... 2 | 1 | efg.jpg | ... My Model (Table) Posts Model // PostsTable.php <?php namespace App\Model\Table; use Cake\ORM\Query; use Cake\ORM\Table; use Cake\Validation\Validator; class PostsTable extends Table { public function initialize(array $config) { $this->table('posts'); $this-