Fixed OnFlushEventArgs Bug. Added doctrine/orm as dependency to composer.