Can you do:

    echo $userQuery->getSql();

and check if this query matches what you're expecting it to look like?

-- 
Jasper N. Brouwer
(@jaspernbrouwer)


On 27 Jan 2014, at 10:06, vipul narain Agarwal <[email protected]> 
wrote:

> hi jasper.
> as per your suggestion now i am using following :
> 
> 
>             $userQuery = $this->em->createQuery("SELECT u FROM user u WHERE 
> u.userid LIKE ? OR u.name LIKE ? ORDER BY u.userid");
>             $userQuery->setParameter(1, '%' . $username . '%');
>             $userQuery->setParameter(2, '%' . $username . '%');
>             $userQuery->setMaxResults($usersMaxResult);
> 
> 
> but it not working at all ..
> is now not even displaying already present user names .....

-- 
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.

Reply via email to