I have this function to delete a model: ```fun del...
# exposed
d
I have this function to delete a model:
Copy code
fun delete(id: Int) = transaction {
        CarEntity[id].delete()
    }
How can I return true if it worked, else false ? Using DSL I can do : `
Copy code
Posts.deleteWhere { Posts.id eq id } > 0
but it doesn’t work with DAO
s
If you can load the entity then how could it fail ?