laravel/laravel — pull request #448 by danielboendergaard (2012-03-26 12:25:31+00:00)
Title: Fixed problem with Eloquent2 pivot tables

Signed-off-by: Daniel Bondergaard

When hydrating the pivot tables Eloquent is checking the attributes from the result for column names starting with 'pivot_'. Before it was checking the values, but the column names is in the array keys.