laravel/framework — pull request #6199 by Flightfreak (2014-10-23 17:02:43+00:00)
Title: fix relationsToArray

not unsetting the relations variable might lead to setting the next key with the previous value if the current value is not an instanceof the ArrayableInterface of null.