Skip to content

_initializeSchema()/getSchema()/initialize() confusion #8105

@PaulPatat

Description

@PaulPatat

Can someone check database-basics.rst in the 4.x branch, section "Connecting Custom Datatypes to Schema Reflection and Generation".
First it was changed in 8eccbbd from _initializeSchema() to initialize() and then it was changed again in 986c2d6 from _initializeSchema() to getSchema() and ended up in a weird state:

class WidgetsTable extends Table
{
    public function getSchema(): TableSchemaInterface
    {
        $this->getSchema()->setColumnType('widget_prefs', 'json');
    }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions