Skip to content

Lookup "plus" feature throws error #1731

@mkrecek234

Description

@mkrecek234

This line causes an error when you choose to have the Lookup with Lookup::plus = true:

$form->setModel($entity->setOnlyFields($this->plus['fields'] ?? []));

Error is "Atk4\Data\Exception: Expected model, but instance is an entity".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions