Get Affected Rows

How to get Affected Rows after execution of update query?

Any ideas what could help?

For what? Updating DataObjects, making inserts manually, using doctrine dbal?

Like when we update any record in mysql and it return number of row affected like:
I need when i update any record in pimcore i want whether record is updated and return me record has affected or not.

sort of like:

BTW: This is not possible for DataObjects, only if you manually execute queries

Thanks for your help :slight_smile: .