mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #2042 from jthomerson/fix_augment_sql_api
FIX make augmentSQL API consistent for strict PHP
This commit is contained in:
commit
8da41f4250
@ -42,7 +42,7 @@ abstract class DataExtension extends Extension {
|
|||||||
*
|
*
|
||||||
* @param SQLQuery $query Query to augment.
|
* @param SQLQuery $query Query to augment.
|
||||||
*/
|
*/
|
||||||
public function augmentSQL(SQLQuery &$query) {
|
public function augmentSQL(SQLQuery &$query, DataQuery &$dataQuery = null) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -38,7 +38,7 @@ class Hierarchy extends DataExtension {
|
|||||||
*/
|
*/
|
||||||
private static $node_threshold_leaf = 250;
|
private static $node_threshold_leaf = 250;
|
||||||
|
|
||||||
public function augmentSQL(SQLQuery &$query) {
|
public function augmentSQL(SQLQuery &$query, DataQuery &$dataQuery = null) {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function augmentDatabase() {
|
public function augmentDatabase() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user