
I find you use Yii1 framework, so the solution as below:
Please set up the relationship in advance in your model file, below is one of example:

I find you use Yii1 framework, so the solution as below:
Please set up the relationship in advance in your model file, below is one of example: