Skip to content

Commit

Permalink
Merge pull request #194 from sh-ogawa/#193
Browse files Browse the repository at this point in the history
changed: #193
  • Loading branch information
franzose authored Jul 13, 2017
2 parents e3e8972 + f7c3685 commit a716df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Franzose/ClosureTable/Models/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,7 @@ public function deleteSubtree($withSelf = false, $forceDelete = false)
{
$action = ($forceDelete === true ? 'forceDelete' : 'delete');

$ids = $this->joinClosureBy('descendant', $withSelf)->pluck($this->getKeyName());
$ids = $this->joinClosureBy('descendant', $withSelf)->pluck($this->getQualifiedKeyName());

if ($forceDelete) {
$this->closure->whereIn($this->closure->getDescendantColumn(), $ids)->delete();
Expand Down

0 comments on commit a716df8

Please sign in to comment.