'ID', 'message' => 'Сообщение', 'payload' => 'payload', 'tm_create' => 'Дата создания', 'tm_send' => 'Дата отправки' ]; } public function getResults() { return $this->hasMany(NotificationResult::className(), ["notify_id" => "id"]); } public function getGoodResults() { return $this->hasMany(NotificationResult::className(), ["notify_id" => "id"])->where(["status" => 200]); } }