protected function synchronize(string $relation)
    {
        $actualContent = $this->relationships[$relation];

        $relationshipObject = $this->entityMap->$relation($this->getEntityObject());
        $relationshipObject->setParent($this->wrappedEntity);
        $relationshipObject->sync($actualContent);
    }
protected function synchronize(string $relation)
    {
        $actualContent = $this->relationships[$relation];

        $relationshipObject = $this->entityMap->$relation($this->getEntityObject());
        $relationshipObject->setParent($this->wrappedEntity);
        $relationshipObject->sync($actualContent);
    }
protected function synchronize ( string $ relation ) { $ actualContent = $ this -> relationships [ $ relation ] ; $ relationshipObject = $ this -> entityMap -> $ relation ( $ this -> getEntityObject ( ) ) ; $ relationshipObject -> setParent ( $ this -> wrappedEntity ) ; $ relationshipObject -> sync ( $ actualContent ) ; }
Synchronize a relationship attribute.

@param string $relation

@return void
Synchronize a relationship attribute .