/**
  * Удаляем записи без урла
  *
  * @throws \Exception
  * @throws \PropelException
  */
 protected function cleanUp()
 {
     return \ItBlaster\RedirectBundle\Model\RedirectQuery::create()->filterByOldUrl(NULL)->delete();
 }
 public function findExactRedirect(Request $request)
 {
     $url = str_replace(array('http://', 'https://'), '', $request->getUri());
     $redirect_object = RedirectQuery::create()->filterByOldUrl('%' . $url, \Criteria::LIKE)->findOne();
     return $redirect_object;
 }