This commit is contained in:
Mojmir Fendek 2020-02-11 10:43:01 +13:00
parent 448147c2f1
commit 285e6caafa
1 changed files with 16 additions and 16 deletions

View File

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