Fixed sync bug

Sync method now detaches relationship from both parent and related models.