Skip to content

Commit

Permalink
changed: #193
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-ogawa committed Jul 13, 2017
1 parent e3e8972 commit f7c3685
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 f7c3685

Please sign in to comment.