Skip to content

Commit 58210e8

Browse files
author
Mark Scherer
committed
Remove hack
1 parent 42973d8 commit 58210e8

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

Model/MyModel.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -541,18 +541,6 @@ public function find($type = null, $query = []) {
541541
}
542542
}
543543

544-
// custom fixes
545-
if (is_string($type)) {
546-
switch ($type) {
547-
case 'count':
548-
if (isset($query['fields'])) {
549-
unset($query['fields']);
550-
}
551-
break;
552-
default:
553-
}
554-
}
555-
556544
// having and group clauses enhancement
557545
if (is_array($query) && !empty($query['having']) && !empty($query['group'])) {
558546
if (!is_array($query['group'])) {

0 commit comments

Comments
 (0)