Hacker News new | past | comments | ask | show | jobs | submit login

Yeah wow. I don't understand why any ORM would ever let you do that. I don't think I've ever heard of a case where someone actually wanted to update every row in a table from application code.

IMO, any decent ORM should block that entirely and force you to drop to SQL if you actually want to do it, or make you call some obnoxiously named function, like:

db.Model(<table>).YesIReallyDoWantToUpdateEveryRowOnTheTable().Update(<values>)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: