src/Zf2Forum/Model/Message/MessageMapper.php
public function persist(MessageInterface $message)
    {
        if ($message->getMessageId() > 0) {
            $this->update($message, null, null, new MessageHydrator);
        } else {
            $this->insert($message, null, new MessageHydrator);
        }

        return $message;
    }
public function persist(MessageInterface $message)
    {
        if ($message->getMessageId() > 0) {
            $this->update($message, null, null, new MessageHydrator);
        } else {
            $this->insert($message, null, new MessageHydrator);
        }

        return $message;
    }
persist - persists a message to the database.

@param MessageInterface $message
@return MessageInterface