Nikolay Oleynikov
e1b1622244
Fix `\yii\db\QueryInterface` type hints ( #13959 ) [skip ci]
8 years ago
Carsten Brandt
c19b2f7dc8
release version 2.0.11
8 years ago
Klimov Paul
c17766181f
Added `QueryInterface::emulateExecution()`
...
Added `QueryInterface::emulateExecution()`, which allows preventing of
the actual query execution.
This allows to cancel `DataProvider` preventing search query execution
in case search model is invalid:
``` php
public function search($params)
{
$query = Item::find();
$dataProvider = new ActiveDataProvider([
'query' => $query,
]);
$this->load($params);
if (!$this->validate()) {
$query->where('0=1');
$query->emulateExecution(); // No SQL execution will be done
return $dataProvider;
}
```
This also fix unecessary query in case of `via()` usage. See #12390 .
fixes #12390
fixes #6373
close #12708
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
A Slatius
293feeb522
Update QueryInterface.php
...
Missing closing bracket in OR condition example
9 years ago
SilverFire - Dmitry Naumenko
cd87d67f34
Global DOCS update: ~~~ replaced with ```
9 years ago
Alexander Makarov
67658cf57d
Replaced static with $this in phpdoc since current IDEs are finally able to handle it correctly
9 years ago
Nikola Kovacs
f11bdfa2a7
Grammar fix: followings -> following
10 years ago
Carsten Brandt
4267b53d43
added doc about count() return value
...
fixes #yiisoft/yii#3712
10 years ago
artyhedgehog
4e5b3b043e
Update QueryInterface.php
...
A back quote sign in docblock missed.
10 years ago
Qiang Xue
9da53b702c
typo fix [skip ci]
10 years ago
Thiago Talma
8a1bcd2775
one more example
10 years ago
Carsten Brandt
0df9a82a7f
updated documentation and tests
...
fixes #5331
10 years ago
Carsten Brandt
f76e767edd
added docs for #5147
10 years ago
Carsten Brandt
4772be9cc4
doc typo
...
fixes #5147
[ci skip]
10 years ago
Carsten Brandt
222f9ddfad
added missing documentation about the NOT operator in Query
...
fixes #5147
10 years ago
Carsten Brandt
91965fd391
phpdoc formatting issues
11 years ago
Qiang Xue
0fa19291f1
refactored filterWhere().
11 years ago
Carsten Brandt
96f1c4c10b
renamed Query::filter() to Query::filterWhere()
11 years ago
Alexander Makarov
3c1a8141fd
fixes #2002
11 years ago
Carsten Brandt
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Carsten Brandt
e27c3872ed
doc improvements
11 years ago
Qiang Xue
0c38655217
psr-4 move
11 years ago
Qiang Xue
9b1c2c8064
Fixes #1586 : `QueryBuilder::buildLikeCondition()` will now escape special characters and use percentage characters by default
11 years ago
Carsten Brandt
8250cfbb0f
reverted change of count() signature
11 years ago
Carsten Brandt
65338972c7
refactored ActiveRecord classes to use Interfaces and traits
...
this allows us to implement other activerecord implementations based on
NoSQL dbms
11 years ago
Carsten Brandt
b8e31d50bb
renamed AR trait classes
11 years ago
Carsten Brandt
4653526262
moved common parts of db ActiveRelation and Query to traits
...
these parts can be reused in other ActiveRecord implementations
11 years ago