Skip to content

Commit 2b5775a

Browse files
committed
Fixed ORM count
1 parent 1daa47f commit 2b5775a

File tree

1 file changed

+2
-3
lines changed
  • src/PHPixie/ORM/Wrappers/Type/Database

1 file changed

+2
-3
lines changed

src/PHPixie/ORM/Wrappers/Type/Database/Query.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ public function planCount()
135135

136136
public function count()
137137
{
138-
$this->query->count();
139-
return $this;
138+
return $this->query->count();
140139
}
141140

142141
public function getRelationshipProperty($name)
@@ -153,4 +152,4 @@ public function __call($method, $params)
153152
{
154153
return $this->query->__call($method, $params);
155154
}
156-
}
155+
}

0 commit comments

Comments
 (0)