Exemple #1
0
 public static function getLocationName($data)
 {
     return OrderLocation::findOne($data);
 }
Exemple #2
0
 public function getOrderLocationName()
 {
     return $this->hasOne(OrderLocation::className(), ['location_id' => 'order_location']);
 }