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 */