actually here's the code
$titleCat=FrontendSetup::findOne(['key_setup'=>'recomented']); $recomented=Category::find()->where(['name'=>$titleCat->value])->with('goods','goods.images','goods.prise','goods.addfeilds','goods.ratingCountAggregation','goods.ratingSumAggregation')->all(); if(isset($recomented)) { foreach ($recomented as $rec){ var_dump($rec->goods); } } gives this error
common \ models \ Category has no relation named "images". Sed Caused by: Unknown Method - yii \ base \ UnknownMethodException Calling unknown method: common \ models \ Category :: getimages ()
in /var/www/magaz.lc/vendor/yiisoft/yii2/base/Component.php at line 285
What error do not tell me?