Skip to content

Commit

Permalink
Fix Laravel Unique Key Extractor
Browse files Browse the repository at this point in the history
fix#14
  • Loading branch information
fab2s committed Aug 17, 2022
1 parent 549b593 commit 199d6a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Laravel/Extractors/UniqueKeyExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ class UniqueKeyExtractor extends PdoUniqueKeyExtractor
*/
public function __construct(Builder $extractQuery, $uniqueKey = 'id')
{
parent::__construct($extractQuery->getConnection()->getPdo(), $extractQuery, $uniqueKey);
$this->setExtractQuery($extractQuery);

parent::__construct($extractQuery->getConnection()->getPdo(), null, $uniqueKey);
}

/**
Expand Down

0 comments on commit 199d6a1

Please sign in to comment.