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; + } }