mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX DBComposite getIndexSpecs method using self API to get the list of db fields
This commit is contained in:
parent
55b3abbe53
commit
2f64667bd6
@ -331,7 +331,7 @@ abstract class DBComposite extends DBField
|
|||||||
if ($type = $this->getIndexType()) {
|
if ($type = $this->getIndexType()) {
|
||||||
$columns = array_map(function ($name) {
|
$columns = array_map(function ($name) {
|
||||||
return $this->getName() . $name;
|
return $this->getName() . $name;
|
||||||
}, array_keys((array) static::config()->get('composite_db')));
|
}, array_keys((array) $this->compositeDatabaseFields()));
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'type' => $type,
|
'type' => $type,
|
||||||
|
Loading…
Reference in New Issue
Block a user