laravel/framework — pull request #601 by AndreasHeiberg (2013-03-17 12:17:34+00:00)
Title: Tried to fix sync()

Read my issue for description #600

The problem with this is that array_diff will still not work if the first array is smaller than the second array. You might have to write your own array_diff?

Secondly this should not be fixed in this function but in $this->newPivotQuery()->lists($this->otherKey)?