Cake PhP 3 Saving associated data in multiples levels
问题 I have a data model where I register an user->customer->contactinfo->email/phone Each one of these are different tables with respective controllers and everything associated. When I try to save an user I use the following code: $users = TableRegistry::get('Users'); $user = $users->newEntity($data, [ 'associated' => ['Customers'],['Contactinfos'],['Phones'],['Emails'] ]); $users->save($user); But it only saves the user and the customer. This is the request data: Array ( [customers] => Array (