protected function createMessage($body)
    {
        $message = new models\DbMessage();
        $message->setAttributes([
            'queue_id'  => $this->id,
            'timeout'   => $this->timeout,
            'sender_id' => Yii::$app->has('user') ? Yii::$app->user->getId() : null,
            'status'    => Message::AVAILABLE,
            'body'      => $body,
        ], false);

        return $this->formatMessage($message);
    }