I am familiar with using Yii to call records, but how would I go about taking an existing active record model and appending more information to it using a different query?
For example:
$user = User::model()->findByPk(1);
$user[] = User::model()->findByPk(2);
Basically, I am trying to add model $user1 + $user2. In this type of example, I want to have both users 1 and 2 in the same $user model. (I have not actually tried the code above, but I do not think it would work like that.) The information obtain from both requests would be exactly the same format.
Be aware that that I am not trying to get both users. I know how to do that. In this question, I am attempting to take an existing model and add more data to it to form one model by merging the two models together.