Skip to content

Commit

Permalink
array mapper: fix selecting main mapper for storage
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Mar 26, 2021
1 parent aafe886 commit 4218ff6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mapper/Memory/RelationshipMapperManyHasMany.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ public function __construct(ArrayMapper $mapper, ArrayMapper $sourceMapper, Prop
{
assert($metadata->relationship !== null);
if ($metadata->relationship->isMain) {
$this->mapper = $mapper;
} else {
$this->mapper = $sourceMapper;
} else {
$this->mapper = $mapper;
}
$this->metadata = $metadata;
}
Expand Down

0 comments on commit 4218ff6

Please sign in to comment.