Extension for DragonJsonServer to use Doctrine 2