A
A
asferot2019-02-20 12:56:56
Yii
asferot, 2019-02-20 12:56:56

How to make join?

There is a table with projects f_data440, there is a field Counterparties - f8260, id from the table with counterparties f_data440 comes there, this table has id and names - f483. The question is, how to get from the table with projects not the id of counterparties, but their names? How to make join? I read the manuals, I understand the logic

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Moses Fender, 2019-02-20
@mosesfender

To get the names of counterparties, you need to specify the name field in the select, join has nothing to do with it. And if this happens through the model, then you need to make the corresponding field in the project model, and specify it in the rules.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question