hi
I am using following query to retrieve users using like
$userQuery = $this->em->createQuery("SELECT u FROM user u WHERE
u.userid LIKE '%.$username.%' OR *u.name* <http://u.name/> LIKE
'%.$username.%' ORDER BY u.userid");
$userQuery->setParameter(1, '%' . $username . '%');
$userQuery->setParameter(2, '%' . $username . '%');
$userQuery->setMaxResults($usersMaxResult);
$userData = $userQuery->getResult();
now when I am giving t__ as search criteria even if there is no userid by
this name it is returning more than 30 results..
can any one explain what is wrong in it ?
thanks in advance.
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/groups/opt_out.