laravel/framework — pull request #1014 by JoostK (2013-04-19 20:05:54+00:00)
Title: Use PK for lists method

Fix for #995.

This will only use the primary key when the `lists` method is called from an Eloquent query, the base Query builder does not know about the key and may only guess, which would mess things up.