function removeObjects()
 {
     if (!$this->isNew()) {
         return TemplateObjects::deleteObjectsByTemplate($this->getId());
     }
 }