From 8ceefb5120da6d95850bd4db175ee50392ddb9fd Mon Sep 17 00:00:00 2001 From: Georgi Hristov Date: Sun, 26 Jul 2020 11:27:33 +0200 Subject: [PATCH] [update] rename to className argument --- src/Model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Model.php b/src/Model.php index 0613644bb2..dad838ea87 100644 --- a/src/Model.php +++ b/src/Model.php @@ -1990,11 +1990,11 @@ public function leftJoin(string $foreign_table, $defaults = []) /** * Private method. * - * @param string $c Class name + * @param string $className Class name * @param string $link Link * @param array|callable $defaults Properties which we will pass to Reference object constructor */ - protected function _hasReference($c, $link, $defaults = []): Reference + protected function _hasReference($className, $link, $defaults = []): Reference { if (!is_array($defaults)) { $defaults = ['model' => $defaults ?: 'Model_' . $link]; @@ -2005,7 +2005,7 @@ protected function _hasReference($c, $link, $defaults = []): Reference $defaults[0] = $link; - $obj = $this->factory($c, $defaults); + $obj = $this->factory($className, $defaults); // if reference with such name already exists, then throw exception if ($this->hasElement($name = $obj->getDesiredName())) {