public function flush() { $this->unitOfWork->flush(); // todo: rename commit }
/** * Updates a group. * * @param GroupInterface $group */ public function updateGroup(GroupInterface $group, $andFlush = true) { $this->dm->persist($group); if ($andFlush) { $this->dm->flush(); } }