Error log:
/var/www.mysite.dev/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php
Line 666 - Could not load class: extendeduser\extUser from mysql.extendeduser\extuser
Any help appreciated!
And thank you all for the great job with Modx3!
Thank you @excavator! (but unfortunately it does not work… i notice there is no composite key in your schema)
I think the composite key is the reason of my issue
If we take the “Simple example” of the doc, the table is created only after i remove the 3 lines for the composite key
ClassExtender translates classes for MODX 3, but only for common MODX classes. It may be failing to properly namespace the class in your composite alias, but MODX 3 should do the translation for you for modUser.
Have you looked at the schema file ClassExtender produces in the core/components/model/schema/ directory?
If it’s not correct, edit the chunk, not the file.
I haven’t look at ClassExtender for MODX 3 yet, but like others have said, the schemas in MODX 3 look a bit different.
The version in the <model> tag is now version="3.0"
The fully qualified class names have to be used for classes you extend (e.g. xPDO\Om\xPDOSimpleObject instead of xPDOSimpleObject) and in all the relationships to other tables (e.g. <composite alias="Data" class="Extendeduser\Model\Userdata" ...> instead of <composite alias="Data" class="Userdata" ...>).
So you schema should probably look something like this: (untested)
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.