/** * @return \yii\db\ActiveQuery */ public function getStocks() { return $this->hasMany(Stock::className(), ['idComercio' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getIdStock0() { return $this->hasOne(Stock::className(), ['id' => 'idStock']); }