Example #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getVehPatentes()
 {
     return $this->hasMany(Vehiculo::className(), ['veh_patente' => 'veh_patente'])->viaTable('uni_veh_car', ['car_patente' => 'car_patente']);
 }
Example #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getVehiculos()
 {
     return $this->hasMany(Vehiculo::className(), ['emp_rut' => 'emp_rut']);
 }