/** * @return \yii\db\ActiveQuery */ public function getFaers() { return $this->hasMany(Faer::className(), ['comite' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getFaers() { return $this->hasMany(Faer::className(), ['subcategoria' => 'id']); }
/** * @inheritdoc */ public function rules() { return [[['proyecto', 'comite'], 'integer'], [['fecha_aprobacion'], 'safe'], [['acta_aprobacion', 'usuario_aprobo'], 'string', 'max' => 255], [['comite'], 'exist', 'skipOnError' => true, 'targetClass' => Comite::className(), 'targetAttribute' => ['comite' => 'id']], [['proyecto'], 'exist', 'skipOnError' => true, 'targetClass' => Faer::className(), 'targetAttribute' => ['proyecto' => 'numero']]]; }
/** * @return \yii\db\ActiveQuery */ public function getNumero0() { return $this->hasOne(Faer::className(), ['numero' => 'numero']); }