Affect multiple models in one action


Is there a built-in-Phalcon way to create/delete multiple models at once? For example, I'm importing a list of users from my LDAP server. I want to delete all existing users, then re-add all the users. I know I can do this with SQL, but I was wondering if there was an ORM-type way to do it?

Similarly, is there an ORM-type way to update the same property on multiple models? For example, if I have a table full of requests, can I set an "expire" property on all the models (and therefore all the DB rows) that are older than today?


To my knowledge there is no massive update/delete functions in Phalcon. You will need to use SQL for that :)