`::exec` returns number of affected rows by update; so I think my proposal is the most compatible to the previous solution, and this usage https://github.com/oat-sa/tao-core/blob/af4b9eea4c8aaeedc0b6d14c964fd5a7339c673d/models/classes/notification/implementation/NotificationServiceAggregator.php#L98 