Add doctrine registry functionality