Skip to content

Commit

Permalink
Fix distinct connection check for model joins
Browse files Browse the repository at this point in the history
  • Loading branch information
haroonsherjan authored Feb 22, 2024
1 parent 23f5724 commit 6459b27
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ function <<access.private>> meta::pure::router::store::routing::modifyMappingBas
let inScopeStores = $inScopeClassMappings->map(setImpl | meta::pure::router::clustering::storeContractForSetImplementation($setImpl, $mapping, $extensions).second);
if(
$runtime.connectionStores->size() >= 1,
| let connection = $inScopeStores->map(s|$runtime->connectionByElementFailSafe($s))->distinct();
| let connection = $inScopeStores->map(s|$runtime->connectionByElementFailSafe($s));
if(
$connection->size() == 1,
$connection->size() == 2 && $connection->distinct()->size() == 1,
| $inScopeStores->match(
$extensions.availableStores.localizeXStoreAssociation
->map(e|$e->eval($x, $inScopeClassMappings))
Expand Down

0 comments on commit 6459b27

Please sign in to comment.