mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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.
|
* Removes the result of query from this query.
|
||||||
*
|
*
|
||||||
@ -1327,4 +1311,20 @@ class DataQuery
|
|||||||
// check if related table is available
|
// check if related table is available
|
||||||
return $query->isJoinedTo($tablePrefix);
|
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
Block a user