V
V
viktor_sarin_oms2016-11-27 13:39:38
Yii
viktor_sarin_oms, 2016-11-27 13:39:38

Yii join active record?

Friends, please help me join 2 tables in Yii1 activ record: write
$criteria->join = 'LEFT JOIN application ON application.perent_id=user.id';
return application::model()->findAll($criteria);
It gives an error, but the essence of the tokava is that I display applications from the application table and about the application.perent_id field I want to display all users from the user table by id

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