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

nested where

Hello

How I can nest the where clause, with the query builder?



98.9k

You can use andWhere:

$builder->from('Robots')
        ->where('Robots.name = "Voltron"')
        ->andWhere('Robots.type = "virtual"')