hasOne(Product::className(), [ 'id' => 'product_id' ]) ->inverseOf('variants'); } }