• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

entity

  1. CMTV

    XF 2.0 Order by phrase

    Hi! I am getting my entitites from database with this code: return $this->finder('UserProgression:Title')->with('MasterTitle'); Later I fetch the results: $titles = $this->getTitleRepo()->getTitleListData()->fetch(); // >>>Sort by $title->title field?<<< $viewParams = [ 'titles' =>...
  2. CMTV

    XF 2.0 Table with ID only?

    Hi! I want to create a list of titles (just like trophies) which users can select. The title enitity structure consists of title_id and the title phrase. But for title I want to use MasterTitle relation so I don't need title column. It seems I have to create a table xf_addonid_title with only...
  3. WeaponOwl

    XF 2.0 TO_MANY relation and templates

    Hello. I see very strange behaviour. I have entity 'MissionRecord' with TO_MANY relation to 'NpcMissionRecord', if try load this entity with relation using default finder $this->finder('.../MissionRecord') ->with('NpcMissionRecord') ->where('id', $id) ->fetch(); i receive...