Remove global scopes for join SQL
Fixes PostgreSQL strictness Refs https://github.com/rainlab/blog-plugin/issues/171
This commit is contained in:
parent
5a70cec7a2
commit
d8922c263f
|
|
@ -430,7 +430,7 @@ class Lists extends WidgetBase
|
|||
* Manipulate a count query for the sub query
|
||||
*/
|
||||
$relationObj = $this->model->{$column->relation}();
|
||||
$countQuery = $relationObj->getRelationCountQuery($relationObj->getRelated()->newQuery(), $query);
|
||||
$countQuery = $relationObj->getRelationCountQuery($relationObj->getRelated()->newQueryWithoutScopes(), $query);
|
||||
|
||||
$joinSql = $this->isColumnRelated($column, true)
|
||||
? DbDongle::raw("group_concat(" . $sqlSelect . " separator ', ')")
|
||||
|
|
|
|||
Loading…
Reference in New Issue