Updated DoctrineObject to support context aware strategies.