- Debug

parent 55f38fa2
...@@ -158,7 +158,7 @@ class Bid extends \common\components\ActiveRecordModel ...@@ -158,7 +158,7 @@ class Bid extends \common\components\ActiveRecordModel
/** @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)) {
var_dump($user->afterSubscribe(['email' => $this->email], true)); $user->afterSubscribe(['email' => $this->email], true);
} }
} }
} }
...@@ -652,7 +652,6 @@ class User extends \common\components\ActiveRecordModel implements IdentityInter ...@@ -652,7 +652,6 @@ class User extends \common\components\ActiveRecordModel implements IdentityInter
if ($exists===true && $count==1) { if ($exists===true && $count==1) {
$init = $trigger->initAction($params); $init = $trigger->initAction($params);
if ($init===true) { if ($init===true) {
return 'asd';
// Указываем дату следующей отправки (по умолчанию сегодня, в момент срабатывания триггера) // Указываем дату следующей отправки (по умолчанию сегодня, в момент срабатывания триггера)
$user=User::findOne($this->id); $user=User::findOne($this->id);
$user->delivery_date = $date->format('Y-m-d'); $user->delivery_date = $date->format('Y-m-d');
......
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