it makes no sense that this method is public. In the other projects of Doctrine is this method private. This is an internal method and I do not see why they should be public. It looks more like an error.