From 2f64667bd68c7c61c32d9180adab1db5b2d96a0c Mon Sep 17 00:00:00 2001 From: Serge Latyntcev Date: Thu, 7 Jan 2021 16:19:54 +1300 Subject: [PATCH] FIX DBComposite getIndexSpecs method using self API to get the list of db fields --- src/ORM/FieldType/DBComposite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ORM/FieldType/DBComposite.php b/src/ORM/FieldType/DBComposite.php index b2bf59b63..21d29576b 100644 --- a/src/ORM/FieldType/DBComposite.php +++ b/src/ORM/FieldType/DBComposite.php @@ -331,7 +331,7 @@ abstract class DBComposite extends DBField if ($type = $this->getIndexType()) { $columns = array_map(function ($name) { return $this->getName() . $name; - }, array_keys((array) static::config()->get('composite_db'))); + }, array_keys((array) $this->compositeDatabaseFields())); return [ 'type' => $type,