public function addToReferencing(array $values, $table, $viaColumn = null, Filtering $filtering = null, $strategy = self::STRATEGY_IN)
    {
        $result = $this->getReferencingResult($table, $viaColumn, $filtering, $strategy);

        foreach ($result as $key => $entry) {
            if (array_diff_assoc($values, $entry) === []) {
                return;
            }
        }

        $result->addDataEntry($values);
        unset($this->index[spl_object_hash($result)]);
    }
public function addToReferencing(array $values, $table, $viaColumn = null, Filtering $filtering = null, $strategy = self::STRATEGY_IN)
    {
        $result = $this->getReferencingResult($table, $viaColumn, $filtering, $strategy);

        foreach ($result as $key => $entry) {
            if (array_diff_assoc($values, $entry) === []) {
                return;
            }
        }

        $result->addDataEntry($values);
        unset($this->index[spl_object_hash($result)]);
    }
public function addToReferencing ( array $ values , $ table , $ viaColumn = null , Filtering $ filtering = null , $ strategy = self :: STRATEGY_IN ) { $ result = $ this -> getReferencingResult ( $ table , $ viaColumn , $ filtering , $ strategy ) ; foreach ( $ result as $ key => $ entry ) { if ( array_diff_assoc ( $ values , $ entry ) === [ ] ) { return ; } } $ result -> addDataEntry ( $ values ) ; unset ( $ this -> index [ spl_object_hash ( $ result ) ] ) ; }
Adds new data entry to referencing Result

@param array $values
@param string $table
@param string|null $viaColumn
@param Filtering|null $filtering
@param string|null $strategy
Adds new data entry to referencing Result