OR clause in query

6 views
Skip to first unread message

Robert Podwika

unread,
Nov 20, 2014, 8:11:03 AM11/20/14
to mandang...@googlegroups.com
Hi,

I would like to know how to perform search OR query in Mandango

Db structure

Array
(
   
[_id] => 4
   
[FacebookID] => 333
   
[GameCenterID] => 111
   
[GoogleGamesID] => 42244
   
[Nickname] => Maniek
   
[Id] => 4
)


<?php
$searchData = array(

       
'$or' => array(

            array
('FacebookID' => 12312),

            array
('GoogleID'     => 123123)

       
);

   
);

   
   
$userQuery = $userRepository->createQuery($searchData);


searching gives no results and records exists in DB .


What's proper syntax for "or" query?

Pablo Díez

unread,
Nov 30, 2014, 3:12:46 PM11/30/14
to mandang...@googlegroups.com
Could you paste the query Mandango does against the db?

Does it work querying directly the collection?

--
You received this message because you are subscribed to the Google Groups "Mandango Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mandango-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages