Fixed return type of Eloquent delete method.

This commit is contained in:
Taylor Otwell 2011-06-28 15:01:15 -07:00
parent b7997a95ba
commit e452bbdf3a
1 changed files with 1 additions and 1 deletions

View File

@ -366,7 +366,7 @@ public function delete($id = null)
// -----------------------------------------------------
if ($this->exists)
{
return Query::table(static::table(get_class($this)))->delete($this->id) == 1;
return Query::table(static::table(get_class($this)))->delete($this->id);
}
return $this->query->delete($id);