Skip to content

Commit

Permalink
Merge pull request #276 from antevgen/patch-1
Browse files Browse the repository at this point in the history
Update ReferenceFactory.php
  • Loading branch information
finiteinfinity committed Apr 12, 2024
2 parents 8ff9498 + 4337940 commit 4438db1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Coders/Model/Relations/ReferenceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected function hasPivot()
return false;
}

$pivot = str_replace($firstRecord, '', $pivot);
$pivot = preg_replace("!$firstRecord!", '', $pivot, 1);

foreach ($this->getRelatedBlueprint()->relations() as $reference) {
if ($reference == $this->getRelatedReference()) {
Expand Down

0 comments on commit 4438db1

Please sign in to comment.