diff --git a/php/src/db/CapacitorChannel.php b/php/src/db/CapacitorChannel.php index df96e2a..6ed4051 100644 --- a/php/src/db/CapacitorChannel.php +++ b/php/src/db/CapacitorChannel.php @@ -13,7 +13,9 @@ class CapacitorChannel implements ITransactor { const TABLE_NAME = null; - const COLUMN_DEFINITIONS = null; + protected function COLUMN_DEFINITIONS(): ?array { + return static::COLUMN_DEFINITIONS; + } const COLUMN_DEFINITIONS = null; const PRIMARY_KEYS = null; @@ -63,7 +65,7 @@ class CapacitorChannel implements ITransactor { $this->useCache = static::USE_CACHE; $this->setup = false; $this->created = false; - $columnDefinitions = cl::withn(static::COLUMN_DEFINITIONS); + $columnDefinitions = $this->COLUMN_DEFINITIONS(); $primaryKeys = cl::withn(static::PRIMARY_KEYS); $migration = cl::withn(static::MIGRATION); $lastMkey = 1;