From f7c3685e5fabaf573c80982e8d4ae9d5bf1b55aa Mon Sep 17 00:00:00 2001 From: sh-ogawa Date: Thu, 13 Jul 2017 14:46:12 +0900 Subject: [PATCH] changed: #193 --- src/Franzose/ClosureTable/Models/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Franzose/ClosureTable/Models/Entity.php b/src/Franzose/ClosureTable/Models/Entity.php index 7e854c9..110836c 100644 --- a/src/Franzose/ClosureTable/Models/Entity.php +++ b/src/Franzose/ClosureTable/Models/Entity.php @@ -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();