public function saveEmailTemplate()
    {
        if (null === $this->_template->key) {
            $this->_template->key = $this->generateKey();
        }

        $this->_repository->save($this->_template);
    }
public function saveEmailTemplate()
    {
        if (null === $this->_template->key) {
            $this->_template->key = $this->generateKey();
        }

        $this->_repository->save($this->_template);
    }
public function saveEmailTemplate ( ) { if ( null === $ this -> _template -> key ) { $ this -> _template -> key = $ this -> generateKey ( ) ; } $ this -> _repository -> save ( $ this -> _template ) ; }
Save email template to database.
Save email template to database .