magento/magento2 — pull request #182 by colinmollenhour (2013-01-02 20:47:06+00:00)
Title: Use collection _idFieldName by default for toOption* methods.

This change allows the toOptionArray and toOptionHash methods work for resource collections without having to override these methods for every instance.