1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-19 21:11:43 +02:00
This commit is contained in:
Ryan Cramer
2022-12-02 10:45:13 -05:00
parent bceb0160b7
commit b85c1c48b0
4 changed files with 33 additions and 7 deletions

View File

@@ -914,6 +914,19 @@ class FieldtypePage extends FieldtypeMulti implements Module, ConfigurableModule
return $query;
}
/**
* Return the query used for Autojoining this field
*
* @param Field $field
* @param DatabaseQuerySelect $query
* @return DatabaseQuerySelect|null
*
*/
public function getLoadQueryAutojoin(Field $field, DatabaseQuerySelect $query) {
$field->setQuietly('distinctAutojoin', true);
return parent::getLoadQueryAutojoin($field, $query);
}
/**
* Update a DatabaseQuerySelect object to match a Page
*