public function updatePivotRecords()
    {
        $pivots = $this->entityMap->getPivotRelationships();

        foreach ($pivots as $pivot) {
            if (array_key_exists($pivot, $this->relationships)) {
                $this->updatePivotRelation($pivot);
            }
        }
    }
public function updatePivotRecords()
    {
        $pivots = $this->entityMap->getPivotRelationships();

        foreach ($pivots as $pivot) {
            if (array_key_exists($pivot, $this->relationships)) {
                $this->updatePivotRelation($pivot);
            }
        }
    }
public function updatePivotRecords ( ) { $ pivots = $ this -> entityMap -> getPivotRelationships ( ) ; foreach ( $ pivots as $ pivot ) { if ( array_key_exists ( $ pivot , $ this -> relationships ) ) { $ this -> updatePivotRelation ( $ pivot ) ; } } }
Update Pivot records on loaded relationships, by comparing the
values from the Entity Cache to the actual relationship inside
the aggregated entity.

@return void
Update Pivot records on loaded relationships by comparing the values from the Entity Cache to the actual relationship inside the aggregated entity .