Skip to content

Replace getTableName to work on resource, not on connection object #13

@jakwinkler

Description

@jakwinkler

Code change required:

    $connection = $this->resourceConnection->getConnection();

    $select = $connection->select()->from(['layout_update' => $connection->getTableName('layout_update')],

$connection->getTableName() does not work with table prefixes

it needs to use resourceConnection object to get a proper tableName using table prefix

$this->resourceConnection->getTableName('layout_update')],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions