コード例 #1
0
ファイル: Vehicles.php プロジェクト: phungdinhtu/Ass205
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getVehicleType()
 {
     return $this->hasOne(VehicleType::className(), ['id' => 'vehicle_type_id']);
 }