M
mjda
Guest
Guest or Bot
Is it possible to do a relation where I pass it a dynamic variable to use in the conditions somehow?
PHP:
Continue reading...
PHP:
Code:
'VehicleYear' => [
'entity' => 'CarData:VehicleYear',
'type' => self::TO_ONE,
'conditions' => [['vehicle_id', '=', '$vehicle_id'], ['vehicle_year', '=', '$someYear']],
'primary' => true
],
Continue reading...
D
S