protected function updateRelations($eloquentModel, $action)
    {
        $mapping = $eloquentModel->getMapping();
        $eloquentRelations = $eloquentModel->getRelations();

        foreach($mapping['relations'] as $name => $relationMapping) {
            if (isset($eloquentRelations[$name])) {
                $this->updateRelation($eloquentModel, $name, $relationMapping, $action);
            }
        }
    }
protected function updateRelations($eloquentModel, $action)
    {
        $mapping = $eloquentModel->getMapping();
        $eloquentRelations = $eloquentModel->getRelations();

        foreach($mapping['relations'] as $name => $relationMapping) {
            if (isset($eloquentRelations[$name])) {
                $this->updateRelation($eloquentModel, $name, $relationMapping, $action);
            }
        }
    }
protected function updateRelations ( $ eloquentModel , $ action ) { $ mapping = $ eloquentModel -> getMapping ( ) ; $ eloquentRelations = $ eloquentModel -> getRelations ( ) ; foreach ( $ mapping [ 'relations' ] as $ name => $ relationMapping ) { if ( isset ( $ eloquentRelations [ $ name ] ) ) { $ this -> updateRelation ( $ eloquentModel , $ name , $ relationMapping , $ action ) ; } } }
Update relations.

@param \ProAI\Datamapper\Eloquent\Model $eloquentModel
@param string $action
@return void
Update relations .