Examples from Alura's Knowing Doctrine ORM training.
- PHP 8.1
- Composer
- SQLite 3
-
Install the dependencies:
composer install
-
Create the database:
php bin/doctrine.php orm:schema-tool:create
-
Run the scripts in the
tests/courses
andtests/students
directories. Example, to create a student with a phone number:php tests/students/insert.php Daniel "(17) 98888-7777"