1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-22 06:13:57 +02:00

Various fixes and improvements related to Selectors and the find operators

This commit is contained in:
Ryan Cramer
2020-07-06 14:39:49 -04:00
parent 6acb8028e3
commit 5b285ebc8c
9 changed files with 369 additions and 144 deletions

View File

@@ -134,7 +134,7 @@ class FieldtypeText extends Fieldtype {
/**
* Update a query to match the text with a fulltext index
*
* @param DatabaseQuerySelect $query
* @param PageFinderDatabaseQuerySelect $query
* @param string $table
* @param string $subfield
* @param string $operator
@@ -143,8 +143,7 @@ class FieldtypeText extends Fieldtype {
*
*/
public function getMatchQuery($query, $table, $subfield, $operator, $value) {
/** @var DatabaseQuerySelectFulltext $ft */
$ft = $this->wire(new DatabaseQuerySelectFulltext($query));
$ft = new DatabaseQuerySelectFulltext($query);
$ft->match($table, $subfield, $operator, $value);
return $query;
}