Building model/schema
Last updated Feb 27th, 2021 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$311 per month—let's make that $500!
Learn moreChanges to the core model (adding/changing/removing database fields or tables), need to be applied to the XML schema files in core/model/schema/
.
Once changes are made in the schema, they need to build to the model files for xPDO to use.
Preparation¶
If you haven't already, make sure you've copied _build/build.properties.sample.php
to _build/build.properties.php
. No changes to the file are necessary.
Building¶
Use Composer to run the build script for all schema files and build the model files:
composer run-script parse-schema
or
php composer.phar run-script parse-schema
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$311 per month—let's make that $500!
Learn more