public function getProducts() { return $this->hasMany(StockToProduct::className(), ['stock_id' => 'id']); }