/** * Set groupType * * @param \Wealthbot\ClientBundle\Entity\AccountGroupType $groupType * @return ClientAccount */ public function setGroupType(\Wealthbot\ClientBundle\Entity\AccountGroupType $groupType = null) { parent::setGroupType($groupType); // Update system_account field if ($groupType) { $typeAdapter = new ClientToSystemAccountTypeAdapter($this); $this->setSystemType($typeAdapter->getType()); } return $this; }