ExtraBuilder Rels: Correct class name?

Hey guys,

i am setting up a custom db table that holds some additional user-information.

ExtraBuilder suggest to put in modUser in the Class field. The modx.mysql.schema.xml shipping with modx 3.0.5-pl suggest MODX\Revolution\modUser as the class name.

What’s the correct class name to use here?

The output would be either this:
<aggregate alias="User" class="MODX\Revolution\modUser" local="internalKey" foreign="id" cardinality="one" owner="foreign" />

or this:
<aggregate alias="User" class="modUser" local="internalKey" foreign="id" cardinality="one" owner="foreign" />

For MODX 3 (or schema version 3.0 → <model ... version="3.0">) use MODX\Revolution\modUser (with the namespace).

For MODX 2.x (or schema version 1.1 → <model ... version="1.1">) use modUser (without the namespace).

1 Like

perfect, thanks @halftrainedharry !

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”.