Albert Borsos
d2c2f63686
Fixes #17127 : `yii\db\ActiveRecord::findOne()` now accepts table aliases
6 years ago
Dmytro Naumenko
adf8f9a32f
Fixes #15931 : `yii\db\ActiveRecord::findOne()` now accepts quoted table and column names using curly and square braces respectively
6 years ago
Carsten Brandt
b195d9e780
optimize table name
7 years ago
Carsten Brandt
0af1c05d6a
`yii\db\ActiveRecord::findOne()` now accepts column names prefixed with table name
...
fixes #15931
7 years ago
Carsten Brandt
a38302fdfd
improved filtering condition on yii\db\ActiveRecord
7 years ago
Alexander Makarov
5f75916cde
Wording adjustments and doc enhancements [skip ci]
7 years ago
SilverFire - Dmitry Naumenko
b37f361ad7
Fixed possible SQL injection through `ActiveRecord::findOne()`
7 years ago
Гордиенко Владислав Юрьевич
1a1fb49426
Fixes #15522 : Fixed `yii\db\ActiveRecord::refresh()` method does not use an alias in the condition
7 years ago
Klimov Paul
65f6b59b35
`@inheritdoc` notation changed
7 years ago
Robert Korulczyk
5a8c3d537b
Enable `phpdoc_summary` rule in php-cs-fixer config ( #14675 )
...
* Enable `phpdoc_summary` rule in php-cs-fixer config.
* Fix case in "PHPDoc".
7 years ago
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
7 years ago
Alexander Makarov
1f26db9fb7
Applied code style fixes
7 years ago
Carsten Brandt
0559a95db9
Fixed ambiguous column error in `BaseActiveRecord::refresh()`
...
when the query adds a JOIN by default
fixes #13757
7 years ago
Alex
6aa0ed2026
Adjusted PHP 7 return types [skip ci]
7 years ago
gagatust
6397791513
Fixed whitespaces to match code style [skip ci]
8 years ago
Klimov Paul
319e27c45c
Fixed `yii\db\BaseActiveRecord::deleteAll()` changes method signature declared by `yii\db\ActiveRecordInterface::deleteAll()`
8 years ago
Carsten Brandt
30e599b94f
updated docs about deleteALl() and updateAll()
8 years ago
Carsten Brandt
a3b6dfbb7b
Catch `\Throwable` in critical places
...
Added catch `\Throwable` to be compatible with PHP7.
Added it in cases where object state needs to be kept consistent.
Mainly on transactions but also some other places where some values are
reset before exiting.
Most of them could probably be refactored by using `finally` in 2.1, as
that requires PHP 5.5.
fixes #12619
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
Carsten Brandt
f006db9b2b
update docs of AR::update()
...
fixes #12461
8 years ago
Roman Grinyov
f0e999e017
Cosmetic changes ( #12292 ) [skip ci]
8 years ago
cuiliang
c0df003ac0
merge from master
8 years ago
Alexander Makarov
1f7134634b
Use static:: instead of $this for static method calls
9 years ago
Carsten Brandt
e43c41c9ea
db layer phpdoc fixes
9 years ago
githubjeka
5326b7aaf6
refactoring for getTableSchema
9 years ago
Alexander Makarov
5ab4f0f090
Better quotes usage in strings
...
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
9 years ago
Carsten Brandt
6d9fe671de
various code style and whitespace adjustments
9 years ago
╃巡洋艦㊣
586684b050
2.0.5 bf7edc5
9 years ago
Carsten Brandt
30f003381d
revised AR documentation
...
fixed some incorrectness in update() and insert() and also fixes #8761
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
6751a80ea0
`yii\db\Schema::insert()` now returns primary key value for empty sequence
10 years ago
Klimov Paul
b05ea3d69e
PK typecast at `yii\db\ActiveRecord` restored
10 years ago
Paul Klimov
4e8ee7b001
Use RETURNING for inserts for pgsql and oci to support PKs with a custom default value expression
10 years ago
Qiang Xue
fdb730a12a
syntax fix [skip ci]
10 years ago
Jan Waś
6e48ed05c7
allow calling Command::insert() without any columns
10 years ago
Carsten Brandt
817bd4279a
fixed AR phpdoc
...
fixes #7787
10 years ago
Alexander Kochetov
29f5dc37a5
Correct phpDoc for return in several cases
...
close #6733
10 years ago
Carsten Brandt
2897257ec1
fixed wrong docs about loadDefaultValues() and init()
...
fixes #7373
10 years ago
Angel Faryshta Guevara
ffe940180c
simplify findByCondition
10 years ago
Qiang Xue
780fdd611a
Fixes #6710
10 years ago
Alexander Kochetov
d5176a463f
better exception message
...
- yii\db\BaseActiveRecord::findByCondition better exception
- yii\db\ActiveRecord::findByCondition better exception
close #6704
10 years ago
╃巡洋艦㊣
1468bd4d3d
version 2.0.1 84b42ab
10 years ago
Carsten Brandt
db56384fcf
improved documentation about loadDefaultValues()
...
issue #6126
10 years ago
Carsten Brandt
73cb5f8aac
changed syntax for referencing the guide in apidoc
...
New syntax:
```
[link to guide](guide:file-name.md)
[link to guide](guide:file-name.md#subsection)
```
fixes #4719
10 years ago
Carsten Brandt
f099616967
improved IDE autocompletion for AR::find()
...
[ci skip]
10 years ago
Carsten Brandt
25bf486b7f
save some function calls on AR insert
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Carsten Brandt
3a1e0f3a5c
property codestyle framework
10 years ago
Qiang Xue
e8c6bb516f
Fixes #4048 : Added `init` event to `ActiveQuery` classes
10 years ago
Vladimir Zbrailov
44f20c61a0
changedAttributes of AfterSaveEvent contain an old values
10 years ago