$user->name = 'blabla'; $user->settings = new \Model\UserSettings(); $user->save();or
$user->name = 'blabla'; $user->save(); $user->settings = new \Model\UserSettings(); $user->save();results in an insert statement where the 'user_settings' user_id is not set, and causes a not null constraint check error. Is it normal ? Has the ORM been designed with the fact that each table should have its own autoincrement primary key ?
It looks like you're new here. If you want to get involved, click one of these buttons!