pdwjun
Results
2
comments of
pdwjun
> When trying to run ./magento on an existing Magento project I get the following error: > > /usr/bin/env: 'php\r': No such file or directory This is because there is...
SilverFire's solution work fine. ```php protected function wrapQuery($query) { $newQuery = new ActiveQuery($query->modelClass); $newQuery->from(['originalQuery' => $query]); return $newQuery; // and then use this $newQuery for pagination } ```