/** * @return \yii\db\ActiveQuery */ public function getAutos() { return $this->hasMany(Auto::className(), ['idcat' => 'id'])->orderBy(['priceT' => SORT_ASC]); }
/** * @return \yii\db\ActiveQuery */ public function getCar0() { return $this->hasOne(Auto::className(), ['id' => 'car']); }
/** * @return \yii\db\ActiveQuery */ public function getAutos() { return $this->hasMany(Auto::className(), ['idcat' => 'id']); }