Fixed object manager definition in documentation

Good for doctrine >= 0.8.x
With doctrine < 0.8.x it crash.