Added example when using Sync and setting pivot data attributes

Currently the documentation only mentions you can use an array of ids when using `sync`, however you can use a keyed-array of ids with an array of attributes to set on the pivot, similar to `attach`.