Delete many records from table

Can I produce query like ┬źDELETE FROM table WHERE condition┬╗ by \Phalcon\Model class? Similar example presented in documentation (, but SELECT with condition and deleting each manually is not a very good idea for me.


No, Phalcon\Mvc\Model does not implement a table data gateway pattern, you can use the Db component to send a direct delete to the database:

$this->db->delete("robots", "id > 100")