Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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
        )
    )
);