You still need the like..
$q->andWhere("c.col like ?", "%$search%");

The percents are wildcards and will match other characters on either side of
the search term.

On Nov 5, 2010 6:50 PM, "xpanshun" <srhen...@gmail.com> wrote:

I tried it like this,


$q = Doctrine_Query::create()
->from('Product p')
->where('p.product_id = ?', $search_term)
->orWhe...
But it still didn't work...is my syntax incorrect?



On Nov 5, 6:33 pm, Alex Pilon <alex.pi...@gmail.com> wrote:
> I mean for the LIKE clause.. so what...

> On Fri, Nov 5, 2010 at 18:31, xpanshun <srhen...@gmail.com> wrote:
> > Isn't that for when you wan...
--

If you want to report a vulnerability issue on symfony, please send it to
security at symfony-projec...

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to