Closed aaronpk closed 9 years ago
Would raw_execute()
suit your needs?
oh yes, I think it would work. I didn't see it mentioned in the "raw query" section of the docs: https://idiorm.readthedocs.org/en/latest/querying.html
Please feel free to submit a pull request improving the docs.
Right now it looks like raw_query is expected to be used with
find_one()
orfind_many()
which means it can't be used for a query like an update or other non-select query. It would be great if I could do something likeORM::execute('UPDATE users SET active = 0')
and it would just run that query and not expect any results to be returned.