relation

  1. CMTV

    XF 2.0 TO_MANY relation through many-to-many table

    Hi! The question is simple. I hope it is. I have three tables: criteria, params and criteria_params. The last one consists of two columns with criterion and param IDs. So it is a many-to-many relation between criteria and params. One criteria can have many params. One param can belong to any...
  2. CMTV

    XF 2.0 Create relation entity if not exists

    Hi! I want for Trophy entity to have default relation with TrophyData entity. $structure->relations = array_merge($structure->relations, [ 'UP' => [ 'entity' => 'UserProgression:TrophyData', 'type' => self::TO_ONE, 'conditions' => 'trophy_id', 'primary' =>...
Top