update foreign key instead of related object when all PKs are set