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

parent d6149f8c
......@@ -154,8 +154,7 @@ class Bid extends \common\components\ActiveRecordModel
*/
public function afterSave($insert, $changedAttributes)
{
if (!parent::afterSave($insert, $changedAttributes))
return false;
parent::afterSave($insert, $changedAttributes);
/** @var User $user */
$user = User::find()->where(['email' => $this->email])->one();
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