/**
  * @param null|TblGroup $tblGroup
  */
 public function setTblGroup(TblGroup $tblGroup = null)
 {
     $this->tblGroup = null === $tblGroup ? null : $tblGroup->getId();
 }
Beispiel #2
0
 /**
  * @param TblGroup $tblGroup
  *
  * @return bool|TblCategory[]
  */
 public function getCategoryAllByGroup(TblGroup $tblGroup)
 {
     /** @var TblGroupCategory[] $EntityList */
     $EntityList = $this->Connection->getEntityManager()->getEntity('TblGroupCategory')->findBy(array(TblGroupCategory::ATTR_TBL_GROUP => $tblGroup->getId()));
     array_walk($EntityList, function (TblGroupCategory &$V) {
         $V = $V->getTblCategory();
     });
     return null === $EntityList ? false : $EntityList;
 }