Skip to content

TbRelationalColumn: getPrimaryKey($data) #1051

@mohammad-eghlima

Description

@mohammad-eghlima

Hi,

We have custom Yii1 and Doctrine2 framework.
We use Doctrine instead of Yii Active record.
We have our own DataProvider extended from \CDataProvider.
You ignored checking this base abstract class and so id will return as null,
If you could change your code (for example add the below code before return null), it will be appreciated.

if ($this->grid->dataProvider instanceof CDataProvider) {
return $data->getId();
}

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