bundle/Entity/Repository/EzUserAccountKeyRepository.php
public function removeByHash(string $hash): void
    {
        $results = $this->findBy(['hashKey' => $hash]);

        foreach ($results as $result) {
            $this->getEntityManager()->remove($result);
        }

        $this->getEntityManager()->flush();
    }
public function removeByHash(string $hash): void
    {
        $results = $this->findBy(['hashKey' => $hash]);

        foreach ($results as $result) {
            $this->getEntityManager()->remove($result);
        }

        $this->getEntityManager()->flush();
    }
public function removeByHash ( string $ hash ) : void { $ results = $ this -> findBy ( [ 'hashKey' => $ hash ] ) ; foreach ( $ results as $ result ) { $ this -> getEntityManager ( ) -> remove ( $ result ) ; } $ this -> getEntityManager ( ) -> flush ( ) ; }
Removes user account key by user hash.

@param string $hash
Removes user account key by user hash .