public function updatePivot($entity)
    {
        $keyName = $this->relatedMap->getKeyName();

        $this->updateExistingPivot(
            $entity->getEntityAttribute($keyName),
            $entity->getEntityAttribute('pivot')->getEntityAttributes()
        );
    }
public function updatePivot($entity)
    {
        $keyName = $this->relatedMap->getKeyName();

        $this->updateExistingPivot(
            $entity->getEntityAttribute($keyName),
            $entity->getEntityAttribute('pivot')->getEntityAttributes()
        );
    }
public function updatePivot ( $ entity ) { $ keyName = $ this -> relatedMap -> getKeyName ( ) ; $ this -> updateExistingPivot ( $ entity -> getEntityAttribute ( $ keyName ) , $ entity -> getEntityAttribute ( 'pivot' ) -> getEntityAttributes ( ) ) ; }
Update Pivot.

@param \Analogue\ORM\Entity $entity

@return void
Update Pivot .