PR fixes
This commit is contained in:
parent
448147c2f1
commit
285e6caafa
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue