tengo esto
Código PHP:
namespace BlogEntityRepository;
use DoctrineORMEntityRepository;
use GedmoTreeEntityRepositoryNestedTreeRepository;
class CategoryRepository extends NestedTreeRepository
{
public function findCategoryById($id)
{
return $this->findOneBy(array('id' => $id));
}
public function ListCategoryQuery()
{
$qb = $this->em->createQueryBuilder();
$qb->select('c')
->from('Entity\Category', 'c');
//->where('u.authenticated = 1')
//->andWhere('u.date = :date')
//->setParameter('date', $date)
//->orderBy('u.name');
return $qb->getQuery();
}
}
el foro borra el caracter \