Skip to content
Browse files

Remove autoFields from count method

When autoFields was set to true and count method was triggered, autofields were added to the query and SQL failed due to wrong format.
  • Loading branch information...
Laykou committed Aug 25, 2014
1 parent 99f4622 commit 17719c6629fe29a71b6b573862a84c454945b722
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/ORM/Query.php
@@ -474,6 +474,7 @@ public function applyOptions(array $options) {
public function count() {
$query = clone $this;
$query->order([], true);

0 comments on commit 17719c6

Please sign in to comment.
You can’t perform that action at this time.