doctrine/doctrine2 — pull request #937 by goetas (2014-02-06 11:30:22+00:00)
Title: Entra-lazy for containsKey on collections

If an association is EXTRA_LAZY and has an indexBy, then
you can call containsKey() without loading the entire collection.