- Редактирован метод afterSave

parent d6149f8c
...@@ -154,8 +154,7 @@ class Bid extends \common\components\ActiveRecordModel ...@@ -154,8 +154,7 @@ class Bid extends \common\components\ActiveRecordModel
*/ */
public function afterSave($insert, $changedAttributes) public function afterSave($insert, $changedAttributes)
{ {
if (!parent::afterSave($insert, $changedAttributes)) parent::afterSave($insert, $changedAttributes);
return false;
/** @var User $user */ /** @var User $user */
$user = User::find()->where(['email' => $this->email])->one(); $user = User::find()->where(['email' => $this->email])->one();
if (!is_null($user)) { if (!is_null($user)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment