| @@ 264-274 (lines=11) @@ | ||
| 261 | * |
|
| 262 | * @return \Illuminate\Database\Eloquent\Builder |
|
| 263 | */ |
|
| 264 | public function newQuery() |
|
| 265 | { |
|
| 266 | $builder = new EloquentQueryBuilder($this->newBaseQueryBuilder()); |
|
| 267 | ||
| 268 | // Once we have the query builders, we will set the model instances so the |
|
| 269 | // builder can easily access any information it may need from the model |
|
| 270 | // while it is constructing and executing various queries against it. |
|
| 271 | $builder->setModel($this)->with($this->with); |
|
| 272 | ||
| 273 | return $this->applyGlobalScopes($builder); |
|
| 274 | } |
|
| 275 | ||
| 276 | /* |
|
| 277 | * Alias for getTranslation() |
|
| @@ 746-756 (lines=11) @@ | ||
| 743 | * |
|
| 744 | * @return \Illuminate\Database\Eloquent\Builder |
|
| 745 | */ |
|
| 746 | public function newQuery() |
|
| 747 | { |
|
| 748 | $builder = new EntryQueryBuilder($this->newBaseQueryBuilder()); |
|
| 749 | ||
| 750 | // Once we have the query builders, we will set the model instances so the |
|
| 751 | // builder can easily access any information it may need from the model |
|
| 752 | // while it is constructing and executing various queries against it. |
|
| 753 | $builder->setModel($this)->with($this->with); |
|
| 754 | ||
| 755 | return $this->applyGlobalScopes($builder); |
|
| 756 | } |
|
| 757 | ||
| 758 | /** |
|
| 759 | * Get the criteria class. |
|