getMailQuery example

return $this->repository;
    }

    /** * Returns an array with the converted mail data and a mail object for the passed mail id. * * @return false|array{data: array, mail: Mail} */
    private function getMail(int $id)
    {
        $query = $this->getRepository()->getMailQuery($id);
        $mail = $query->getOneOrNullResult(AbstractQuery::HYDRATE_OBJECT);

        if (!$mail instanceof Mail) {
            $this->View()->assign(['success' => false, 'message' => 'Mail not found']);

            return false;
        }

        if ($mail->isOrderStateMail()) {
            $type = 'orderState';
        } elseif ($mail->isPaymentStateMail()) {
            
Home | Imprint | This part of the site doesn't use cookies.