public function removeForRedirect(Redirect $redirect)
    {
        $notFounds = $this->om->getRepository($this->class)->findBy(array('path' => $redirect->getSource()));

        foreach ($notFounds as $notFound) {
            $this->om->remove($notFound);
        }

        $this->om->flush();
    }
public function removeForRedirect(Redirect $redirect)
    {
        $notFounds = $this->om->getRepository($this->class)->findBy(array('path' => $redirect->getSource()));

        foreach ($notFounds as $notFound) {
            $this->om->remove($notFound);
        }

        $this->om->flush();
    }
public function removeForRedirect ( Redirect $ redirect ) { $ notFounds = $ this -> om -> getRepository ( $ this -> class ) -> findBy ( array ( 'path' => $ redirect -> getSource ( ) ) ) ; foreach ( $ notFounds as $ notFound ) { $ this -> om -> remove ( $ notFound ) ; } $ this -> om -> flush ( ) ; }
Deletes NotFound entities for a Redirect's path.

@param Redirect $redirect
Deletes NotFound entities for a Redirect s path .