Pimcore\Model\Tool\Email\Log\Dao::create PHP Method

create() public method

public create ( )
    public function create()
    {
        try {
            $this->db->insert(self::$dbTable, []);
            $date = time();
            $this->model->setId($this->db->lastInsertId());
            $this->model->setCreationDate($date);
            $this->model->setModificationDate($date);
        } catch (\Exception $e) {
            throw $e;
        }
    }