We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34193
    • 330 Posts
    I’ve read the docs here

    http://rtfm.modx.com/display/revolution20/Extending+modUser#ExtendingmodUser-1.%29Createtheschemaandgenerateamodel

    here is my schema
    <?xml version="1.0" encoding="UTF-8"?>
    <model package="schoolmanagement" baseClass="xPDOObject" platform="mysql" defaultEngine="MyISAM" phpdoc-package="schoolmanagement" phpdoc-subpackage="model">
        <!-- inherit the modx user and extend it -->
        <object class="extUser" table="users" extends="modUser">
            <composite alias="Pupil_Details" class="pupil-details" local="id" foreign="User_ID_Child" cardinality="one" owner="local" />
            <composite alias="ParentOfChild" class="parent-child" local="id" foreign="User_ID_Child" cardinality="many" owner="local" />
            <composite alias="ChildOfParent" class="parent-child" local="id" foreign="User_ID_Parent" cardinality="many" owner="local" />
            <composite alias="AdditionalContactsforChild" class="child-additional-contacts" local="id" foreign="User_ID_Child" cardinality="many" owner="local" />
            <composite alias="PupilResults" class="pupil-results" local="id" foreign="User_ID_Child" cardinality="many" owner="local" />
        </object>
    
    Cut short i think this is the relevant bit for the problem
    


    File structure is SchoolManagement/trunk/core/components/SchoolManagement/model/ from the MODx install directory

    edited extuser.class.php which is found in the schoolmanagement directory under model
    class extUser extends modUser {
        function __construct(xPDO & $xpdo) {
            parent :: __construct($xpdo);
            $this->set('class_key','extUser');
        }
    }


    created a system setting of extension_packages with a value of schoolmanagement:/var/www/SchoolManagement/trunk/core/components/SchoolManagement/model/

    created new user but they still have the class_key of modUser and not extUser

    Have I missed any steps anywhere.

    EDIT forgot to say using MODx Revolution 2.0.5-dev (git)
      • 28215
      • 4,149 Posts
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com