Commit 839c5aa
committed
Refactor setModel method to support chaining
The setModel method in the Query class has been refactored to support better chaining. Instead of creating a new Query instance with the new model, the existing Query instance is cloned, its model is updated, and then returned. This change aims to bring better consistency with other methods and improve the overall usability and predictability of the Query API. Moreover, it addresses the deprecation warning by conforming to the method signature.1 parent 04118f7 commit 839c5aa
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
251 | 250 | | |
252 | 251 | | |
253 | | - | |
| 252 | + | |
254 | 253 | | |
255 | 254 | | |
256 | | - | |
| 255 | + | |
257 | 256 | | |
| 257 | + | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| |||
0 commit comments