Hi,
I am trying to use $In operator in ODM find(); Below is my code but does not work. Anyone know what is the syntax?
$products = Products::find(array(
array(
'$in' => array('tags' => array('beauty')),
'$or' => array(
array('endDateTime' => ''),
array('endDateTime' => array('$gt' => new Mongodate(strtotime("now"))))
)
),
"sort" => array("_id" => -1)
));