Now we have the has many feature working fine!

There was a horrible bug there. The procedure to convert the foreign key of
records not present on the current record was extracted to a function.
Pushing a saved object on a saved object.
Save pushed object if is a new record.
Can push non-saved objects to a non-saved object.