laravel/framework — pull request #4480 by alexgalletti (2014-05-23 18:56:39+00:00)
Title: [Fix] BelongsToMany: sync return value is forced to int

Removes the array map intval and int typecasting which breaks the return value of `sync()` when models with string based keys are used.