@@ -23,14 +23,14 @@ class SelectQuery extends Query
23
23
* @param array|null $fields
24
24
* @param array|int|Limit|null $limit
25
25
* @param array|GroupField[]|string[]|null $group
26
- * @param bool $saveResults Whether results of this query should be saved in the model registry.
26
+ * @param bool $saveResultsToRegistry Whether results of this query should be saved in the model registry.
27
27
*/
28
28
public function __construct (null |WhereCondition |array |WhereGroup $ where = null ,
29
29
null |array $ order = null ,
30
30
null |array $ fields = null ,
31
31
null |Limit |array |int $ limit = null ,
32
32
null |array $ group = null ,
33
- protected bool $ saveResults = true )
33
+ protected bool $ saveResultsToRegistry = true )
34
34
{
35
35
if ($ where ) {
36
36
$ this ->where ($ where );
@@ -106,9 +106,9 @@ public function getGroup(): ?array
106
106
* @param bool $saveResults
107
107
* @return $this
108
108
*/
109
- public function saveResults (bool $ saveResults = true ): static
109
+ public function saveResultsToRegistry (bool $ saveResults = true ): static
110
110
{
111
- $ this ->saveResults = $ saveResults ;
111
+ $ this ->saveResultsToRegistry = $ saveResults ;
112
112
return $ this ;
113
113
}
114
114
@@ -117,8 +117,8 @@ public function saveResults(bool $saveResults = true): static
117
117
*
118
118
* @return bool
119
119
*/
120
- public function shouldSaveResults (): bool
120
+ public function shouldSaveResultsToRegistry (): bool
121
121
{
122
- return $ this ->saveResults ;
122
+ return $ this ->saveResultsToRegistry ;
123
123
}
124
124
}
0 commit comments