Example #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getVehicle()
 {
     return $this->hasOne(VehicleInventory::className(), ['id' => 'vehicleId']);
 }
Example #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getVehicleInventories()
 {
     return $this->hasMany(VehicleInventory::className(), ['type' => 'id']);
 }