$brand = Brand::find()->all();
I got this exception
PHP Notice – yii\base\ErrorException
Array to string conversion
$brand = Brand::find()->all();
I got this exception
PHP Notice – yii\base\ErrorException
Array to string conversion
Probably you are trying to treat ‘$brand’ as an object of Brand, but it is an array of Brand objects.