125 Commits

Author SHA1 Message Date
88f2348ed5 Fixed ActiveRecord::unlinkAll() to respect onCondition()
Closes #12213
2016-12-14 22:51:21 +02:00
7a3a342127 Fix errors reported by apidoc extension. (#12986) 2016-11-13 14:51:21 +01:00
d28009843e #12950: Mentioned AttributeTypecastBehavior in AR afterSave() docs 2016-11-10 03:12:47 +03:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
1433d8a017 added example for relation name to AR phpdoc
fixes #12802
2016-10-24 02:16:54 +02:00
f006db9b2b update docs of AR::update()
fixes #12461
2016-09-05 11:57:08 +02:00
ea03f56d42 BaseActiveRecord methods canGetProperty() and canSetProperty() improved to handle attribute list fetching failure. 2016-09-05 12:22:09 +03:00
75439d367d Fixed canGetProperty() and canSetProperty() returns false for yii\db\BaseActiveRecord attributes 2016-08-30 17:39:23 +03:00
4f7b1b0817 Fixed yii\db\BaseActiveRecord::refresh() may set incorrect oldAttributes values at some cases 2016-08-30 14:42:46 +03:00
1e1723a741 Updated PHPDoc in BaseActiveRecord
Closes #12349
2016-08-26 22:11:35 +03:00
143f9070af Fixed yii\db\BaseActiveRecord::updateAttributes() change isNewRecord state for the new model 2016-08-12 11:43:31 +03:00
6b6fa96319 Fix #11252 use strict comparison on hasAttribute()
close #11256
2016-07-06 14:48:38 +02:00
9d327baa8b coding style fixes 2016-05-26 11:19:32 +02:00
60f6ecf063 yii\db\BaseActiveRecord now triggers event EVENT_AFTER_REFRESH` after a record is refreshed
fixes #9604
close #10867
2016-04-22 17:14:41 +02:00
5921865459 Fixed: #11270 - Error when link record in one to many relation. (#11301)
Fixed: #11270 - Error when link record in one to many relation.
2016-04-08 10:36:38 +03:00
48a2df5d52 Fixes #11283: ActiveRecord::unlink() is not setting FK to null before deleting itself anymore 2016-04-06 12:41:53 +03:00
5c4e2d4372 Removed unnecessary parentheses 2016-02-16 14:08:43 +03:00
1f7134634b Use static:: instead of $this for static method calls 2016-02-16 14:06:23 +03:00
2275156f7e PHPDoc updated 2015-12-15 19:14:55 +02:00
8765cae71c Reverted #9656 because of BC break (reverted from commit 4a464afe9b4103d96c61f77ea6e093e45ee837c9) 2015-11-25 06:41:55 +03:00
4a464afe9b Fixes #9656: yii\db\BaseActiveRecord refactored in order to getting, setting and unsetring attribute values using the same approach 2015-11-20 15:45:12 +03:00
1b3770fd21 Use === instead of == where possible 2015-10-10 01:04:35 +03:00
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`.
2015-10-03 20:23:56 +08:00
229a39dec1 Revert "Fixes #9758: phpdoc correction"
This reverts commit 13a2b70a65bcea1d98ea7e0b57f83939c3b69bbc.

The docblock is totally valid as it describes the property defined by this getter.
2015-09-24 21:52:21 +02:00
13a2b70a65 Fixes #9758: phpdoc correction 2015-09-24 00:48:31 +03:00
6d9fe671de various code style and whitespace adjustments 2015-08-02 00:27:19 +02:00
68c30c1034 Replace aliases of functions 2015-06-29 22:59:22 +03:00
30f003381d revised AR documentation
fixed some incorrectness in update() and insert() and also fixes #8761
2015-06-12 00:55:12 +02:00
f68e970de2 link to PHP classes just as we do with normal classes
apidoc can handle this!
2015-06-05 21:53:24 +02:00
ec76a3015a use yii\base\Event in BaseAR to fix phpdoc reference 2015-06-05 21:26:55 +02:00
0959b5d28e updated docs about dirty attributes
fixes #8619
2015-06-01 21:26:47 +02:00
467596633d Code optimization 2015-05-26 12:00:28 +03:00
51a442d6c8 Fixed yii\db\ActiveRecord does not updates attribute specified at optimisticLock() after save 2015-05-26 11:53:34 +03:00
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.
2015-05-16 00:15:52 +02:00
42fd70b2a1 exception message fix 2015-05-10 15:40:41 -04:00
b0be36668e slight refactoring for #8179 2015-04-26 21:32:50 +02:00
4970fb1e95 if...else 2015-04-25 22:36:40 -03:00
4bb9ec8906 new param 2015-04-24 14:32:09 -03:00
815ca6b444 Compare it equals 2015-04-24 12:45:15 -03:00
1c1cfd5e2d yii\db\BaseActiveRecord::getAttributeLabel() refactored to be recursive 2015-04-22 14:19:46 +03:00
4482d9f8f3 Merge branch 'master' of github.com:yiisoft/yii2 2015-04-22 13:10:45 +03:00
f617618172 yii\db\BaseActiveRecord::getAttributeHint() added 2015-04-22 13:10:25 +03:00
5635a97fa2 Update BaseActiveRecord.php
more explicit code for #8149
2015-04-21 16:50:29 +02:00
6d96d3cbee Fixed yii\db\BaseActiveRecord::updateCounters() fails for new record saved with counter attribute not set 2015-04-21 16:23:00 +03:00
99a612e1a6 Finished AR guide [skip ci] 2015-03-15 01:26:06 -04:00
bd20b30b89 AR guide WIP [skip ci] 2015-03-09 22:43:24 -04:00
29f5dc37a5 Correct phpDoc for return in several cases
close #6733
2015-02-28 23:49:16 +01:00
89d1e55f91 phpdoc fix, close #7404 2015-02-24 13:26:01 +01:00
6481d13494 Optimized checks order in conditions 2015-02-08 17:56:36 +03:00
ffe940180c simplify findByCondition 2015-02-03 16:31:00 -05:00