/** * Update the aggregate column in the related Group object * * @param ConnectionInterface $con A connection object */ protected function updateRelatedGroupSkillCount(ConnectionInterface $con) { if ($group = $this->getGroup()) { $group->updateSkillCount($con); } if ($this->oldGroupSkillCount) { $this->oldGroupSkillCount->updateSkillCount($con); $this->oldGroupSkillCount = null; } }