FIX DBComposite getIndexSpecs method using self API to get the list of db fields

This commit is contained in:
Serge Latyntcev 2021-01-07 16:19:54 +13:00
parent 55b3abbe53
commit 2f64667bd6

View File

@ -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,