SilverFire - Dmitry Naumenko
|
2275156f7e
|
PHPDoc updated
|
9 years ago |
Alexander Makarov
|
8765cae71c
|
Reverted #9656 because of BC break (reverted from commit 4a464afe9b )
|
9 years ago |
Sam Mousa
|
4a464afe9b
|
Fixes #9656: `yii\db\BaseActiveRecord` refactored in order to getting, setting and unsetring attribute values using the same approach
|
9 years ago |
Alexander Makarov
|
1b3770fd21
|
Use === instead of == where possible
|
9 years ago |
Vovan-VE
|
c68b9a486c
|
Fix: Issue #9814: event type EVENT_AFTER_INSERT and EVENT_AFTER_UPDATE
Events `EVENT_AFTER_INSERT` and `EVENT_AFTER_UPDATE` are documented
as `Event`, but infact they are `AfterSaveEvent`.
|
9 years ago |
Carsten Brandt
|
229a39dec1
|
Revert "Fixes #9758: phpdoc correction"
This reverts commit 13a2b70a65 .
The docblock is totally valid as it describes the property defined by this getter.
|
9 years ago |
Alexander Makarov
|
13a2b70a65
|
Fixes #9758: phpdoc correction
|
9 years ago |
Carsten Brandt
|
6d9fe671de
|
various code style and whitespace adjustments
|
9 years ago |
Sebastian Chojniak
|
86c2e22a5b
|
class Event is used in docs
|
9 years ago |
Sebastian Chojniak
|
6ee285f321
|
unused imports removed
|
9 years ago |
Alexander Mohorev
|
68c30c1034
|
Replace aliases of functions
|
9 years ago |
Carsten Brandt
|
30f003381d
|
revised AR documentation
fixed some incorrectness in update() and insert() and also fixes #8761
|
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 |
Carsten Brandt
|
0959b5d28e
|
updated docs about dirty attributes
fixes #8619
|
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 |
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 |
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
|
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 |
Qiang Xue
|
99a612e1a6
|
Finished AR guide [skip ci]
|
10 years ago |
Qiang Xue
|
bd20b30b89
|
AR guide WIP [skip ci]
|
10 years ago |
Alexander Kochetov
|
29f5dc37a5
|
Correct phpDoc for return in several cases
close #6733
|
10 years ago |
Carsten Brandt
|
89d1e55f91
|
phpdoc fix, close #7404
|
10 years ago |
Alexander Makarov
|
6481d13494
|
Optimized checks order in conditions
|
10 years ago |
Angel Faryshta Guevara
|
ffe940180c
|
simplify findByCondition
|
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 |
Carsten Brandt
|
073982ab0a
|
Update BaseActiveRecord.php
The exceptions thrown on error are db exceptions.
|
10 years ago |
Qiang Xue
|
83b0b3d480
|
Fixes #6311: Optimistic lock for ActiveRecord does not work as expected
|
10 years ago |
Carsten Brandt
|
38d0570843
|
fixed unlink() for array valued attributes
return value would not be a valid array when json encoded after unlink().
fixes #6065
|
10 years ago |
Alexander Makarov
|
cba52e3c5e
|
Fixes #5382: renamed "pivot table" to "junction table" since it's correct term to use
|
10 years ago |
Qiang Xue
|
aeaf0511d2
|
Fixes #3725: Fixed the bug that the filtering condition used in relation definition was ignored when calling `ActiveRecord::unlinkAll()`
|
10 years ago |
Qiang Xue
|
7cf358af03
|
Fixes #4607: AR model will throw an exception if it does not have a primary key to avoid updating/deleting data massively
|
10 years ago |
RichWeber
|
92cd13a913
|
pull origin
|
10 years ago |
Alexander Makarov
|
0edd8bc65a
|
Fixed missing and incorrect phpdoc
|
10 years ago |
miramir
|
67bd4972ba
|
Check availabilty field in BaseActiveRecord::populateRecord
check with Object::canSetProperty()
fixes #4305, close #4211
|
10 years ago |
Carsten Brandt
|
d036d2f5bf
|
add support for array valued attr relations to unlink and link
|
10 years ago |
Qiang Xue
|
05e21b7291
|
Fixes #4135
|
10 years ago |
Carsten Brandt
|
1085f1bd9b
|
cleanup after #4092
fixes #4086
|
10 years ago |
Vladimir Zbrailov
|
7113a23a45
|
change PhpDoc of param
|
10 years ago |
Vladimir Zbrailov
|
44f20c61a0
|
changedAttributes of AfterSaveEvent contain an old values
|
10 years ago |
Qiang Xue
|
86f06677e9
|
Refactored AR findOne() and findAll().
|
10 years ago |
Carsten Brandt
|
7b13c370e9
|
fixes #3681, disambiguate PK in findOne and findAll
|
10 years ago |