Fixing bugs and improving.

Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
This commit is contained in:
Taylor Otwell
2012-03-16 15:32:26 -05:00
parent b5e75f6fcf
commit 762f2402c3
4 changed files with 26 additions and 6 deletions

View File

@@ -14,7 +14,7 @@ class Has_One_Or_Many extends Relationship {
{
$attributes[$this->foreign_key()] = $this->base->get_key();
return parent::insert($attributes);
return $this->model->create($attributes);
}
/**