diff --git a/src/NavigationProperty.php b/src/NavigationProperty.php index d107c5804..885c49ee5 100644 --- a/src/NavigationProperty.php +++ b/src/NavigationProperty.php @@ -183,7 +183,12 @@ public function generatePropertyValue( $foreignKey = $targetConstraint->getReferencedProperty()->getName(); $localKeyName = $value->getEntitySet()->getType()->getKey(); $localKey = $value->getPropertyValues()->get($localKeyName)->getValue(); - $expansionTransaction->getFilter()->setValue($foreignKey . ' eq ' . $localKey); + $constraintInjection = $foreignKey . " eq '" . $localKey . "'"; + + $filterData = $expansionTransaction->getFilter()->getValue(); + $filterData = $filterData ? "(" . $filterData . ") and " . $constraintInjection : $constraintInjection; + + $expansionTransaction->getFilter()->setValue($filterData); } }