Nikolay Oleynikov
11761ac42a
Fix `\yii\db\QueryTrait` type hints ( #13956 ) [skip ci]
8 years ago
Carsten Brandt
c19b2f7dc8
release version 2.0.11
8 years ago
Brandon Kelly
5609e918de
Fixed some malformed @var tags ( #13468 ) [skip ci]
8 years ago
p.chapl
5488fc6e28
fixes #13221
...
Make \yii\db\QueryTrait::limit and \yii\db\QueryTrait::offset methods works with \yii\db\Expression
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
Carsten Brandt
5a462dc5d2
added tests and documentation for #8824
9 years ago
Andrew Nester
61df727eaf
Expression objects for orderBy should be handled in QueryBuilder
...
fixes #10535
close #10637
- Added test to prove orderBy accepts \yii\db\Expression
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
Carsten Brandt
9df21d46f3
reverted addition of $where property
10 years ago
Carsten Brandt
222f9ddfad
added missing documentation about the NOT operator in Query
...
fixes #5147
10 years ago
Alexander Makarov
47ee0b87d4
Removed unnecessary code
10 years ago
Alexander Makarov
b656137541
Added support for arbitrary operators to Query::filterWhere, added support for arbitrary operators to Sphinx extension
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Alexander Makarov
0edd8bc65a
Fixed missing and incorrect phpdoc
10 years ago
Carsten Brandt
2f4a09ef53
phpdoc
10 years ago
Carsten Brandt
6f7be5ee5c
filterWhere for postgres ILIKE
...
fixes #3252
11 years ago
Sergey Gonimar
322e9e2385
Fix BETWEEN and NOT BETWEEN conditions.
...
```
PHP Notice – yii\base\ErrorException
Undefined offset: 3
in .../yiisoft/yii2/db/QueryTrait.php at line 269
```
11 years ago
Qiang Xue
0fa19291f1
refactored filterWhere().
11 years ago
Qiang Xue
869d96ee0d
Fixed test break.
11 years ago
Carsten Brandt
e9e59483f4
removed unnecessary code duplication
11 years ago
Carsten Brandt
96f1c4c10b
renamed Query::filter() to Query::filterWhere()
11 years ago
Carsten Brandt
a35ef1ce7a
added andOnCondition and orOnCondition to ActiveQuery
...
fixes #2957
11 years ago
Alexander Makarov
8cd247730a
Query::filter() adjustments
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
262189533a
huge amount of documentation link fixes
11 years ago
Carsten Brandt
e27c3872ed
doc improvements
11 years ago
Qiang Xue
0c38655217
psr-4 move
11 years ago
Qiang Xue
4f346f4be1
doc fix.
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