I’m fetching the product table with it’s relations:
$products = Product::find()
->with(['test',
'test.a',
'test.b',
'producta',
'productb'])
->all();
echo Json::encode($products);
Unfortunately it only echoes the contents of the product table, without the tables listed in “with”. Any idea what’s wrong here?