From d0578bfd406dc0023888c9b4fb72c8b29af35ec4 Mon Sep 17 00:00:00 2001 From: Amir Karimi Date: Sat, 14 Sep 2024 07:20:14 +0000 Subject: [PATCH] [feat] add missing method for foreign key --- src/BaseRelation.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/BaseRelation.php b/src/BaseRelation.php index 7f82f29..28d5f12 100644 --- a/src/BaseRelation.php +++ b/src/BaseRelation.php @@ -202,4 +202,16 @@ public function getForeignKeyName() // resolvers which need this function. return NestedSet::PARENT_ID; } + + /** + * Get the Qualify plain foreign key. + * + * @return mixed + */ + public function getQualifiedForeignKeyName() + { + // Return a stub value for relation + // resolvers which need this function. + return NestedSet::PARENT_ID; + } }