<?php

namespace AppBundle\Repository;

/**
 * EventRepository
 *
 * This class was generated by the Doctrine ORM. Add your own custom
 * repository methods below.
 */
class EventRepository extends \Doctrine\ORM\EntityRepository
{
	public function findByName($name){
		return $this->createQueryBuilder('e')
			   ->where('e.title LIKE :name')
			   ->setParameter('name' ,'%'.$name.'%')
			   ->getQuery()
			   ->getResult();
	}
}
