Delete and Delete_from

In which case delete_from and delete() have same result?


Simply put -

Delete() will delete one record at a time.

Delete_from can delete multiple records at a time.

Also, the .delete() will call the delete method on the table. A .doDelete() will skip that.

Both will perform same thing while deleting single record. Its a simple logic