/** * @param null|TblCommonInformation $tblCommonInformation */ public function setTblCommonInformation(TblCommonInformation $tblCommonInformation = null) { $this->tblCommonInformation = null === $tblCommonInformation ? null : $tblCommonInformation->getId(); }
/** * @param TblCommonInformation $tblCommonInformation * @param string $Nationality * @param string $Denomination * @param int $IsAssistance * @param string $AssistanceActivity * * @return TblCommonInformation */ public function updateCommonInformation(TblCommonInformation $tblCommonInformation, $Nationality, $Denomination, $IsAssistance, $AssistanceActivity) { $Manager = $this->Connection->getEntityManager(); /** @var null|TblCommonInformation $Entity */ $Entity = $Manager->getEntityById('TblCommonInformation', $tblCommonInformation->getId()); if (null !== $Entity) { $Protocol = clone $Entity; $Entity->setNationality($Nationality); $Entity->setDenomination($Denomination); $Entity->setIsAssistance($IsAssistance); $Entity->setAssistanceActivity($AssistanceActivity); $Manager->saveEntity($Entity); Protocol::useService()->createUpdateEntry($this->Connection->getDatabase(), $Protocol, $Entity); return true; } return false; }