Browse Source
* consistent-after-save: use an AfterSaveEvent class to be consistent fixed test break and wrong parameter changed updateAttributes to be more simple update Ensure consistent behavior in ActiveRecord::afterSave() Conflicts: framework/UPGRADE.mdtags/2.0.0-rc
Carsten Brandt
10 years ago
16 changed files with 126 additions and 85 deletions
@ -0,0 +1,24 @@
|
||||
<?php |
||||
/** |
||||
* @link http://www.yiiframework.com/ |
||||
* @copyright Copyright (c) 2008 Yii Software LLC |
||||
* @license http://www.yiiframework.com/license/ |
||||
*/ |
||||
|
||||
namespace yii\db; |
||||
|
||||
use yii\base\Event; |
||||
|
||||
/** |
||||
* AfterSaveEvent represents the information available in [[ActiveRecord::EVENT_AFTER_INSERT]] and [[ActiveRecord::EVENT_AFTER_UPDATE]]. |
||||
* |
||||
* @author Carsten Brandt <mail@cebe.cc> |
||||
* @since 2.0 |
||||
*/ |
||||
class AfterSaveEvent extends Event |
||||
{ |
||||
/** |
||||
* @var array The attribute values that had changed and were saved. |
||||
*/ |
||||
public $changedAttributes; |
||||
} |
Loading…
Reference in new issue