📢 Moderators Needed 🚀

Moderators are needed with resources to post or have access to resources to post. Submit an application to be considered.
M

RSS Dynamic Entity Relation Conditions

  • Thread starter Thread starter mjda
  • Start date Start date
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:

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

Continue reading...
 
Similar content Most view View more
Back
Top