You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not use the addPackage() method as in v2, instead add your files to the composer to be auto included
See Autoloading Composer
New CLI tools
cd bin
Then php xpdo or php xpdo.php
Write XML schema, when you already have existing database tables (Not done)
Example: php xpdo write-schema -C ../test/properties.inc.php mysql ../examples/test.schema.xml
Parse XML schema file, this will generate the PHP xPDO model classes
Example: php xpdo parse-schema -C ../test/properties.inc.php -c --psr4 mysql ../examples/test.schema.xml ../examples/test/
You will need the trailing slash
The text was updated successfully, but these errors were encountered:
This is a start and would be helpful to add a bit more:
How to set up to contribute
From command line
composer install
How to run Tests
A single test, via command line:
cd test
phpuint --bootstrap bootstrap.php "xPDO/Test/TearDownTest.php"
All tests
cd test
phpuint -c complete.phpunit.xml
v3.0 changes
Example:
xPDO\\Test\\Sample
See Autoloading Composer
cd bin
php xpdo
orphp xpdo.php
Example:
php xpdo write-schema -C ../test/properties.inc.php mysql ../examples/test.schema.xml
Example:
php xpdo parse-schema -C ../test/properties.inc.php -c --psr4 mysql ../examples/test.schema.xml ../examples/test/
You will need the trailing slash
The text was updated successfully, but these errors were encountered: