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