We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

ORM

hi

$getuserunfos = $this->modelsManager->executeQuery("SELECT id,username,avatar FROM Users WHERE id IN($array)");
$this->view->setVars(array('getuserunfos' => $getuserunfos));

this is my query in PHQL, but How to write this with ORM ex:

$robots = Robots::find(
    array(
        'letter IN ({letter:array})',
        'bind' => array(
            'letter' => $array
        )
    )
);