public function getTemplateConnections(bool $force = false) : CNabuMessagingServiceTemplateList
    {
        if ($this->nb_messaging_template_service_list->isEmpty() || $force) {
            $this->nb_messaging_template_service_list->clear();
            $this->nb_messaging_template_service_list->merge(
                CNabuMessagingServiceTemplate::getTemplatesForService($this)
            );
        }

        return $this->nb_messaging_template_service_list;
    }
public function getTemplateConnections(bool $force = false) : CNabuMessagingServiceTemplateList
    {
        if ($this->nb_messaging_template_service_list->isEmpty() || $force) {
            $this->nb_messaging_template_service_list->clear();
            $this->nb_messaging_template_service_list->merge(
                CNabuMessagingServiceTemplate::getTemplatesForService($this)
            );
        }

        return $this->nb_messaging_template_service_list;
    }
public function getTemplateConnections ( bool $ force = false ) : CNabuMessagingServiceTemplateList { if ( $ this -> nb_messaging_template_service_list -> isEmpty ( ) || $ force ) { $ this -> nb_messaging_template_service_list -> clear ( ) ; $ this -> nb_messaging_template_service_list -> merge ( CNabuMessagingServiceTemplate :: getTemplatesForService ( $ this ) ) ; } return $ this -> nb_messaging_template_service_list ; }
Gets all Template connections for this Service.
@param bool $force If true forces to reload the list from the database storage.
@return CNabuMessagingServiceTemplateList Returns the List of Template connections.
Gets all Template connections for this Service .