Phalcon mongodb find + where ???

  • Help me ... I want to convert php mysql command to phalcon MongoDB
  • MYSQL: $query = "SELECT * FROM table WHERE status > 10 AND status < 100 ORDER BY st DESC LIMIT 100";
  • ==>> phalcon MongoDB: ????

http://docs.phalconphp.com/en/latest/reference/odm.html

tks.

You can use......

    $result = Test::find(array(
        "conditions" => array(
                    'status'=>array('$gte' => 0),
                    'status'=>array('$lt' => 100)
                    ),
        "limit" => 5
    ));