Carsten Brandt
abe1094ac9
fixed querybuilder phpdoc
9 years ago
Carsten Brandt
d0c6cb7700
abort removing duplicate records when pk is not in result set
...
in this cases it does not make sense to remove duplicates as the result is not on record level anymore.
This could be the case after GROUP BY has been applied.
fixes #8772
9 years ago
Carsten Brandt
30f003381d
revised AR documentation
...
fixed some incorrectness in update() and insert() and also fixes #8761
9 years ago
Alexander Mohorev
afe21a986a
PSR-2 anonymous functions
9 years ago
Alexander Mohorev
ae42a054bb
PSR-2 spaces, commas, etc
9 years ago
Alexander Mohorev
789cdfea86
PSR-2 switch statement
9 years ago
Alexander Mohorev
651ed4ee2c
Undefined class NotSupportedException
9 years ago
Alexander Mohorev
2134c72bb0
Undefined class Expression
9 years ago
Alexander Mohorev
2288f339e6
Parameter type is not compatible with declaration
9 years ago
Klimov Paul
e683e3e79d
Schema refresh moved to `Migration::init()`.
9 years ago
Paul Klimov
8e4518c81f
Doc comments updated
9 years ago
Paul Klimov
0bfa2e2673
Reset of `refreshTableName` on `yii\db\Command` reuse ensured
9 years ago
Carsten Brandt
f68e970de2
link to PHP classes just as we do with normal classes
...
apidoc can handle this!
9 years ago
Carsten Brandt
ec76a3015a
use yii\base\Event in BaseAR to fix phpdoc reference
9 years ago
Klimov Paul
6ea19e8f45
Schema refreshing added to `yii\db\Migration::execute()`
9 years ago
Klimov Paul
72f9e63e10
Table schema auto refreshing on DDL added to `yii\db\Command`
9 years ago
Klimov Paul
fb0062114e
Method `yii\db\Schema::refreshTableSchema()` added
9 years ago
prog5
1f8aafd36b
#8573 fix
9 years ago
Klimov Paul
0d48f1041e
Fixed `yii\db\Command::getRawSql()` unable to parse params specified without colon (':')
9 years ago
Carsten Brandt
0959b5d28e
updated docs about dirty attributes
...
fixes #8619
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
Klimov Paul
a849e815df
Fixed `yii\db\ActiveQuery` produces incorrect SQL for aggregations, when `sql` field is set
9 years ago
Carsten Brandt
aa5887fec7
added missing use statement to fix #8572
...
- added unit tests for timestamp behavior and insert with expression
- fixed issue #8572
close #8596
9 years ago
Klimov Paul
467596633d
Code optimization
9 years ago
Klimov Paul
51a442d6c8
Fixed `yii\db\ActiveRecord` does not updates attribute specified at `optimisticLock()` after save
9 years ago
John Was
a63fc2ff59
properly quote sequence name in Schema::getLastInsertId()
...
fixes #8483
close #8515
9 years ago
Klimov Paul
68351e7d8f
`yii\db\ActiveQuery::removeDuplicatedModels()` throws exception if model primary key is empty
9 years ago
Carsten Brandt
cca47b5469
ensure primary key string comparison is made identical
...
this is to avoid cases where string primary keys starting with '0e'.
See http://securityaffairs.co/wordpress/36732/hacking/php-hash-comparison-flaw.html
Other parts of Yii 2, escpecially the security and auth parts, are **not** affected.
10 years ago
Qiang Xue
42fd70b2a1
exception message fix
10 years ago
Qiang Xue
4488dbbff7
build cleanup [skip ci]
10 years ago
Jan Waś
ec920d2881
add missing schema name conditions for mssql
...
close #8046
fixes #6234
10 years ago
Klimov Paul
582b7606ac
Fixed `yii\db\ActiveRelationTrait::populateRelation()` fails when `link` refers to array string convertable object attribute
10 years ago
Qiang Xue
5d4780da21
Fixes #8268 : Allow `QueryBuilder` to recognize more variations of `limit` and `offset` values
10 years ago
laszlovl
8c22270591
db Command performance tweak
10 years ago
vbelogai
672510d521
Update Schema.php
...
insert: added $columnSchemas initialization; added size parameter to pdoStatement->bindParam
10 years ago
Carsten Brandt
21f51400ef
added information about quoting to batch insert
10 years ago
Qiang Xue
e6b09bb82f
Fixes #7888 doc fix [skip ci]
10 years ago
Carsten Brandt
b0be36668e
slight refactoring for #8179
10 years ago
Thiago Talma
4970fb1e95
if...else
10 years ago
Thiago Talma
4bb9ec8906
new param
10 years ago
Thiago Talma
815ca6b444
Compare it equals
10 years ago
Klimov Paul
faf7bb73fa
redundant call chain removed
10 years ago
Klimov Paul
4503cae876
code style fix
10 years ago
Klimov Paul
c0fc4596e2
Fixed `yii\db\ActiveRelationTrait::populateRelation()` fails when `link` refers to string convertable object attribute, like `\MongoId`
10 years ago
Carsten Brandt
ef662b57be
added missing `@since` annotations
10 years ago
Klimov Paul
1c1cfd5e2d
`yii\db\BaseActiveRecord::getAttributeLabel()` refactored to be recursive
10 years ago
Klimov Paul
f617618172
`yii\db\BaseActiveRecord::getAttributeHint()` added
10 years ago
Carsten Brandt
5635a97fa2
Update BaseActiveRecord.php
...
more explicit code for #8149
10 years ago
Klimov Paul
6d96d3cbee
Fixed `yii\db\BaseActiveRecord::updateCounters()` fails for new record saved with counter attribute not set
10 years ago
Nikola Kovacs
f11bdfa2a7
Grammar fix: followings -> following
10 years ago