From e452bbdf3a5cbf72670bd2bef2d35620c07a6444 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 28 Jun 2011 15:01:15 -0700 Subject: [PATCH] Fixed return type of Eloquent delete method. --- system/db/eloquent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/db/eloquent.php b/system/db/eloquent.php index 584a03bf..9263faab 100644 --- a/system/db/eloquent.php +++ b/system/db/eloquent.php @@ -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);