private function inject_foreign_key_for_new_association(Model $model, &$attributes)
{
$primary_key = $this->get_foreign_key_for_new_association($model);
if (!isset($attributes[key($primary_key)])) {
$attributes[key($primary_key)] = current($primary_key);
}
return $attributes;
}