Skip to content

Commit 89fbe45

Browse files
committed
Fixed array_unique bug;
1 parent ecb052c commit 89fbe45

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Adapters/ResultSet.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ public function getResponse() {
6262
}, $filter);
6363
} else {
6464
$filtered = $total;
65-
$this->resultSet->setHydrateMode(PhalconResultSet::HYDRATE_RECORDS);
66-
$items = array_map('array_unique', $this->resultSet->toArray());
65+
$items = $this->resultSet->filter(function($item) {
66+
return $item->toArray();
67+
});
6768
}
6869

6970
if ($this->order) {

0 commit comments

Comments
 (0)