SwiftMailer/SendListener.php
private function logUpdate(\Swift_Mime_SimpleMessage $message, $status)
    {
        // Check Message
        if (null === $message->getId() || empty($message->getId())) {
            return false;
        }

        // Update Data
        $this->log->setStatus($status);
        $this->log->setDate($message->getDate());

        // Save || Update
        $this->entityManager->persist($this->log);
        $this->entityManager->flush();

        return true;
    }
private function logUpdate(\Swift_Mime_SimpleMessage $message, $status)
    {
        // Check Message
        if (null === $message->getId() || empty($message->getId())) {
            return false;
        }

        // Update Data
        $this->log->setStatus($status);
        $this->log->setDate($message->getDate());

        // Save || Update
        $this->entityManager->persist($this->log);
        $this->entityManager->flush();

        return true;
    }
private function logUpdate ( \ Swift_Mime_SimpleMessage $ message , $ status ) { // Check Message if ( null === $ message -> getId ( ) || empty ( $ message -> getId ( ) ) ) { return false ; } // Update Data $ this -> log -> setStatus ( $ status ) ; $ this -> log -> setDate ( $ message -> getDate ( ) ) ; // Save || Update $ this -> entityManager -> persist ( $ this -> log ) ; $ this -> entityManager -> flush ( ) ; return true ; }
Update Log Status & Date.

@param \Swift_Mime_SimpleMessage $message
@param $status

@return bool
Update Log Status & Date .