Hi!
How i can see result of search in relation?
For example:
$user=User::model()->findByPk(1);
$posts=$user->posts(array('condition'=>'status=1'));
What type class return? What methods exists for posts?
Hi!
How i can see result of search in relation?
For example:
$user=User::model()->findByPk(1);
$posts=$user->posts(array('condition'=>'status=1'));
What type class return? What methods exists for posts?
An now, I dolved this problem like this:
$winCells = $field -> cells (array ('condition' => "cell_name=" . "'$win'"));
$field -> win_cell = $winCells[0] -> cell_id;
$field -> save();
Is that right?
Tkanks