public function fetchEmailTemplate()
    {
        if (null !== $this->owner) {
            $this->_template = $this->_repository->getByKeyWithTranslation(
                $this->generateKey(),
                $this->owner->{$this->_languageAttribute}
            );
        } else {
            $this->_template = $this->_repository->create();
        }
    }
public function fetchEmailTemplate()
    {
        if (null !== $this->owner) {
            $this->_template = $this->_repository->getByKeyWithTranslation(
                $this->generateKey(),
                $this->owner->{$this->_languageAttribute}
            );
        } else {
            $this->_template = $this->_repository->create();
        }
    }
public function fetchEmailTemplate ( ) { if ( null !== $ this -> owner ) { $ this -> _template = $ this -> _repository -> getByKeyWithTranslation ( $ this -> generateKey ( ) , $ this -> owner -> { $ this -> _languageAttribute } ) ; } else { $ this -> _template = $ this -> _repository -> create ( ) ; } }
Fetch email template from database.
Fetch email template from database .