public function save()
    {
        foreach ($this->getChanged() as $relation) {
            $this->sync($relation, $this->values->get($relation), $this->delete);
        }
    }
public function save()
    {
        foreach ($this->getChanged() as $relation) {
            $this->sync($relation, $this->values->get($relation), $this->delete);
        }
    }
public function save ( ) { foreach ( $ this -> getChanged ( ) as $ relation ) { $ this -> sync ( $ relation , $ this -> values -> get ( $ relation ) , $ this -> delete ) ; } }
Sync the changed relationships
Sync the changed relationships