public function getByName($name)
 {
     $c = new Criteria();
     $c->add(NagiosHostTemplatePeer::NAME, $name);
     $c->setIgnoreCase(true);
     $template = NagiosHostTemplatePeer::doSelectOne($c);
     if (!$template) {
         return false;
     }
     return $template;
 }
 /**
  * Get the associated NagiosHostTemplate object
  *
  * @param      PropelPDO Optional Connection object.
  * @return     NagiosHostTemplate The associated NagiosHostTemplate object.
  * @throws     PropelException
  */
 public function getNagiosHostTemplate(PropelPDO $con = null)
 {
     if ($this->aNagiosHostTemplate === null && $this->host_template !== null) {
         $c = new Criteria(NagiosHostTemplatePeer::DATABASE_NAME);
         $c->add(NagiosHostTemplatePeer::ID, $this->host_template);
         $this->aNagiosHostTemplate = NagiosHostTemplatePeer::doSelectOne($c, $con);
         /* The following can be used additionally to
         		   guarantee the related object contains a reference
         		   to this object.  This level of coupling may, however, be
         		   undesirable since it could result in an only partially populated collection
         		   in the referenced object.
         		   $this->aNagiosHostTemplate->addNagiosEscalations($this);
         		 */
     }
     return $this->aNagiosHostTemplate;
 }