From 285e6caafadbda696b2a11adcb08b79e155dbc35 Mon Sep 17 00:00:00 2001 From: Mojmir Fendek Date: Tue, 11 Feb 2020 10:43:01 +1300 Subject: [PATCH] PR fixes --- src/ORM/DataQuery.php | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/ORM/DataQuery.php b/src/ORM/DataQuery.php index 3816e7355..64ead5a87 100644 --- a/src/ORM/DataQuery.php +++ b/src/ORM/DataQuery.php @@ -1093,22 +1093,6 @@ class DataQuery } } - /** - * Use this extension point to alter the table name - * useful for versioning for example - * - * @param $class - * @param $table - * @return mixed - */ - protected function getJoinTableName($class, $table) - { - $updated = $table; - $this->invokeWithExtensions('updateJoinTableName', $class, $table, $updated); - - return $updated; - } - /** * Removes the result of query from this query. * @@ -1327,4 +1311,20 @@ class DataQuery // check if related table is available return $query->isJoinedTo($tablePrefix); } + + /** + * Use this extension point to alter the table name + * useful for versioning for example + * + * @param $class + * @param $table + * @return mixed + */ + private function getJoinTableName($class, $table) + { + $updated = $table; + $this->invokeWithExtensions('updateJoinTableName', $class, $table, $updated); + + return $updated; + } }