Dynamic Entity Relation Conditions

Status
This content is read-only, or is not open for further replies.

mjda

Guest
offline
Is it possible to do a relation where I pass it a dynamic variable to use in the conditions somehow?

PHP:

Code:
'VehicleYear' => [
    'entity' => 'CarData:VehicleYear',
    'type' => self::TO_ONE,
    'conditions' => [['vehicle_id', '=', '$vehicle_id'], ['vehicle_year', '=', '$someYear']],
    'primary' => true
],

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom