I am trying to work with model()->findAll(); and running into some issues I don't understand.
$testQuery = TestModel::model()->findAll();
This would retrieve all data and store it in the array called $testQuery, right?
I can see that there is A LOT in it if I dump it with:
echo "<pre>"; print_r ($testQuery); echo "</pre>";
If I want to work with this array now, what would be the best practice to do so?
Let's say I would like to access one field called TestField which ID would be 1, I could do the following:
echo $testQuery[0]->FieldText;
Is there an easier way to achieve this? Using a find method which retrieves only one row is not an option
