A
A
Alexander2015-05-14 16:56:29
Yii
Alexander, 2015-05-14 16:56:29

How to sort by 3 table Yii 1.1?

There are 3 tables, how can I sort according to data from 3 tables.
1table( id, name, etc) 2table(category) 3table(category, id, sorting)
Each category has its own sorting.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Grechushnikov, 2015-05-14
@maxyc_webber

Your question can be answered - How is it possible.
on the topic, no links are described, or anything. And we left the prefix for reading thoughts at home

A
Askar Fuzaylov, 2015-05-14
@ARACOOOL

The question is like porridge. If you understand correctly, it should help you

new CDbcriteria([
'order' => 'relation_table.sort_field'
])

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question