/**
  * @param $Name
  * @param $Description
  *
  * @return TblAccountType|null|object
  */
 public function actionCreateType($Name, $Description)
 {
     $Manager = $this->Connection->getEntityManager();
     $Entity = $Manager->getEntity('TblAccountType')->findOneBy(array('Name' => $Name, 'Description' => $Description));
     if (null === $Entity) {
         $Entity = new TblAccountType();
         $Entity->setName($Name);
         $Entity->setDescription($Description);
         $Manager->saveEntity($Entity);
         Protocol::useService()->createInsertEntry($this->Connection->getDatabase(), $Entity);
     }
     return $Entity;
 }
 /**
  * @param null|TblAccountType $tblAccountType
  */
 public function setTblAccountType(TblAccountType $tblAccountType = null)
 {
     $this->tblAccountType = null === $tblAccountType ? null : $tblAccountType->getId();
 }