concrete/src/Entity/OAuth/AuthCodeRepository.php
public function persistNewAuthCode(AuthCodeEntityInterface $authCodeEntity)
    {
        $this->getEntityManager()->transactional(function(EntityManagerInterface $entityManager) use ($authCodeEntity) {
            $entityManager->persist($authCodeEntity);
        });
    }
public function persistNewAuthCode(AuthCodeEntityInterface $authCodeEntity)
    {
        $this->getEntityManager()->transactional(function(EntityManagerInterface $entityManager) use ($authCodeEntity) {
            $entityManager->persist($authCodeEntity);
        });
    }
public function persistNewAuthCode ( AuthCodeEntityInterface $ authCodeEntity ) { $ this -> getEntityManager ( ) -> transactional ( function ( EntityManagerInterface $ entityManager ) use ( $ authCodeEntity ) { $ entityManager -> persist ( $ authCodeEntity ) ; } ) ; }
Persists a new auth code to permanent storage.

@param AuthCodeEntityInterface $authCodeEntity
@throws \Exception
Persists a new auth code to permanent storage .