configure doctrine with entities