امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
Is it possible to do a relation where I pass it a dynamic variable to use in the conditions somehow?
PHP:
PHP:
کد:
'VehicleYear' => [
'entity' => 'CarData:VehicleYear',
'type' => self::TO_ONE,
'conditions' => [['vehicle_id', '=', '$vehicle_id'], ['vehicle_year', '=', '$someYear']],
'primary' => true
],
