Hmm, I guess I misunderstood my original read of the original code. Our 
array formats look the same. Maybe the real problem is that using MongoRegex 
objects isn't necessarily, it worked for me to just use strings. However, I 
didn't test this using sub-items in a field, but on a field itself.

Also, AD7six has a good point in one of his posts, this doesn't need to be 
two separate $regex queries. It can be combined into one using the pipe 
operator. However, I thought I would give a solution for how to do two 
$regex queries in case someone needed it.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to