We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28840
    • 46 Posts
    Hi Folks!

    I’ve created my own schema and i would like to extend modUser to a specialUser, that has only "composite" relationships defined in it (to my other objects).
    <object class="specialUser" table="special_users" extends="modUser">
    <composite ... />
    <composite ... />
    </object>
    


    My question is why I cant use
    $sUsers = $modx->getCollection('specialUser');

    to get all the users from modUser table?

    How can I connect the modUsers with my own composite-relationship?


    Sumoborac
      • 28840
      • 46 Posts
      Oh, forgot to add... I’ve read the http://rtfm.modx.com/display/revolution20/Extending+modUser and I saw the
      Any pre existing user, will still have modUser as the class_key and therefore will not be extended or produce user objects of type extUser unless you change it
      but I dont wont to change the class_key for the user... Is there any way around it?

      Sumoborac