I have a registration form and I am creating a record in both User and Identity tables (a user hasMany identities)
the form looks like this
hasMany model's fields should be as array (when combined with parent model), see .0 added between field names
hasMany
.0
echo $this->Form->input('Identity.0.name'); echo $this->Form->input('Identity.0.surname'); ... echo $this->Form->input('Identity.0.email');