Skip to content

search not working when using alias and multiple models #17

@stefanchiriac

Description

@stefanchiriac

Hello,

When using builder and relationships between 2 models, column search and global search no longer works and returns all results.

The problem seems to be from QueryBuilder::getResponse on $this->bind()

      $builder = $this->modelsManager->createBuilder()
        ->columns('u.id, u.username, u.email, r.name, u.status')
        ->addFrom('Core\Models\User', 'u')
        ->addFrom('Core\Models\Role', 'r')
        ->where('u.role_id = r.id');

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions