I have a model with the following relation:
'articles'=>array(self::BELONGS_TO, 'Article', 'proficiencyId','with'=>'articleReviews'),
I'm using it like this:
$articles = Comments::model()->with('articles')->together()->findAll();
How do I access the 'articleReviews' array?
I've tried $articles->articles->articleReviews
but I get the error 'trying to access property of non-object'.
I can print_r the resultant array and all the data is there in a format that should be accessible with the '$articles->articles->articleReviews' syntax.