Add autoflush parameter to doctrine based repository implementation.