Skip to content

Select fields on relation not work #1418

Open
@rifalpg

Description

@rifalpg

This code not work

    public function details(){
        return $this->hasMany(Detail::class)->select(['name']);
    }

But, other query is work, like :

    public function details(){
        return $this->hasMany(Detail::class)->where('name','john');
    }

Metadata

Metadata

Assignees

Labels

Needs investigationNeed investigation about bugs described in issuebug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions