public function log(Message $message, \Exception $e)
    {
        $sql = "UPDATE " . $this->messageTable . "
                SET log = :log
                WHERE message_id = :id
        ";
        $stmt = $this->getDb()->prepare($sql);
        $stmt->bindValue(':log', $e->getMessage(), \PDO::PARAM_STR);
        $stmt->bindValue(':id', $message->message_id, \PDO::PARAM_INT);
        $stmt->execute();
    }
public function log(Message $message, \Exception $e)
    {
        $sql = "UPDATE " . $this->messageTable . "
                SET log = :log
                WHERE message_id = :id
        ";
        $stmt = $this->getDb()->prepare($sql);
        $stmt->bindValue(':log', $e->getMessage(), \PDO::PARAM_STR);
        $stmt->bindValue(':id', $message->message_id, \PDO::PARAM_INT);
        $stmt->execute();
    }
public function log ( Message $ message , \ Exception $ e ) { $ sql = "UPDATE " . $ this -> messageTable . "
                SET log = :log
                WHERE message_id = :id
        " ; $ stmt = $ this -> getDb ( ) -> prepare ( $ sql ) ; $ stmt -> bindValue ( ':log' , $ e -> getMessage ( ) , \ PDO :: PARAM_STR ) ; $ stmt -> bindValue ( ':id' , $ message -> message_id , \ PDO :: PARAM_INT ) ; $ stmt -> execute ( ) ; }
Saves error message to message on execution failure

@param Message $message
@param \Exception $e
@return void
Saves error message to message on execution failure