Merge branch 'staging' into develop

This commit is contained in:
Taylor Otwell
2012-03-30 08:45:16 -05:00
6 changed files with 30 additions and 6 deletions

View File

@@ -170,9 +170,7 @@ class Has_Many_And_Belongs_To extends Relationship {
*/
public function delete()
{
$id = $this->base->get_key();
return $this->joining_table()->where($this->foreign_key(), '=', $id)->delete();
return $this->pivot()->delete();
}
/**