I have a mongo query which works nice on my local machine on windows
but on the server, which uses linux the same query is not working
By is not working I mean that it executes correctly but is not able to find the data that corresponds to this criteria.
MDB::alloc()->{COLL_wall}->remove(
array(
'_id' => new MongoId($wid),
'$or' => array(
array(wall_owner => $this->id),
array(wall_writter => $this->id)
),
wall_owner => $wallOwner
),
array(
'safe' => true
)
);
what can be the problem?
Most probably the problem is that your machine on linux the version of mongo is much older and for this reason “or” statement is not working there
Check both your versions and upgrade if necessary.