From ea3fa78d570e83abb330c206bc0eb56d8fa54b57 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Thu, 7 Mar 2024 08:08:10 +1100 Subject: [PATCH] Adds missing method Fixes https://github.com/octobercms/october/issues/5790 --- src/Database/Relations/AttachOneOrMany.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Database/Relations/AttachOneOrMany.php b/src/Database/Relations/AttachOneOrMany.php index d3d80a883..6901ea613 100644 --- a/src/Database/Relations/AttachOneOrMany.php +++ b/src/Database/Relations/AttachOneOrMany.php @@ -404,6 +404,15 @@ public function makeValidationFile($value) return $value; } + /** + * getRelatedKeyName + * @return string + */ + public function getRelatedKeyName() + { + return $this->related->getKeyName(); + } + /** * @deprecated use getForeignKeyName */