Hi, I use PersistantObject for delete old logs with this code: > $persistentSession = GauffrLog::getPersistentSessionInstance(); > $q = $persistentSession->createDeleteQuery( 'GauffrLog' ); > $q->where( $q->expr->lt( 'Time', $q->bindValue( $timeToDelete ) ) ); > $persistentSession->deleteFromQuery( $q );
(All code is here: http://projects.llaumgui.com/index.php/p/gauffr/source/tree/HEAD/trunk/bin/gauffr_clear_log.php) Can I know the number of row deleted by my query like with mysql_affected_rows ? Thx. -- Jabber/Gtalk : [email protected]
