src/Admin/src/Repository/AdminRepository.php
/**
     * @param Admin $admin
     * @throws ORMException
     * @throws OptimisticLockException
     */
@param Admin $admin
@throws ORMException
@throws OptimisticLockException
@param Admin $admin @throws ORMException @throws OptimisticLockException
public function saveAdmin(Admin $admin)
    {
        $this->getEntityManager()->persist($admin);
        $this->getEntityManager()->flush();
    }
public function saveAdmin ( Admin $ admin ) { $ this -> getEntityManager ( ) -> persist ( $ admin ) ; $ this -> getEntityManager ( ) -> flush ( ) ; }
@param Admin $admin
 @throws ORMException
 @throws OptimisticLockException
@param Admin $admin @throws ORMException @throws OptimisticLockException