A
A
Artem Prokhorov2021-08-17 16:04:56
Yii
Artem Prokhorov, 2021-08-17 16:04:56

How to add select() on hasMany relationship?

public function getComponents()
    {
        return $this->hasMany(AccessComponentUser::class, ['user_id' => 'id']);
    }

How to add select()specific table columns here?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question