Extra Builder - error while Build and creating tables

Hello,
after creating the package, objects and fields, save the schema,
when i try to build (create tables), i’ve got a popup with this error :
(no matter the option)

Possible Error

Error, Validate ‘bootstrap.php’: Class still does not exist after autoloader registration: MusiQlive\Playlist

And the creation failed.
What can be the cause ?

(modx 3.1.0pl, extrabuilder 2.0.0pl)

Do you use the format MyComponent\Model (including \Model) for the “Package Key”?

What is your exact schema (“Schema Actions” → “Preview Schema”)?

thank you for your anwser.
i tried 2 packages, here is the schema generated for each of them :

<?xml version="1.0" encoding="UTF-8"?>
<model package="MusiQlive" baseClass="xPDO\Om\xPDOObject" platform="mysql" defaultEngine="InnoDB" phpdoc-package="" version="3.0">
  <object class="Playlist" table="playlist" extends="xPDO\Om\xPDOSimpleObject">
    <field key="compteur" dbtype="int" precision="10" phptype="int" null="" default="0"/>
  </object>
</model>

and

<?xml version="1.0" encoding="UTF-8"?>
<model package="Qolniqo" baseClass="xPDO\Om\xPDOObject" platform="mysql" defaultEngine="InnoDB" phpdoc-package="" version="3.0">
  <object class="Repertoire" table="qqo_repertoire" extends="xPDO\Om\xPDOSimpleObject">
    <field key="artiste" dbtype="varchar" precision="191" phptype="string" null="true" default=""/>
    <field key="titre" dbtype="varchar" precision="191" phptype="string" null="true" default=""/>
    <field key="album" dbtype="varchar" precision="191" phptype="string" null="true" default=""/>
    <field key="duree" dbtype="varchar" precision="20" phptype="string" null="true" default=""/>
  </object>
</model>

Both have the same problem,
the components directories are created (_assets, _build, lexicon,schema, src), with bootstrap.php file.
Database is not affected, no table were created.

Like I wrote above, include \Model in the field “Package Key”, so that in the schema you get the value package="MusiQlive\Model".

I had poop in my eyes… Sorry for loosing your time.
your help is invaluable, thank you ! It works as it should.

it’s crazy to think 99% of the time, MODX always works as expected and the problem is just sitting on the chair…

1 Like