It is an example of using a doctrine with php via a terminal command and sqlite, in a student registration with a telephone relationship and courses linked to it.
composer install
This this section explains how to use the command line with php execution.
- New student registration
php bin/student-insert.php '{name}'
- New student registration with phones
php bin/student-insert.php '{name}' '{phone1}' '{phone2}' ...
- New course registration
php bin/course-insert.php
- List of registered students information
php bin/student-list.php
- List of registered courses
php bin/course-list.php
- Relationship with student and course
php bin/student-enroll.php '{studentId}' '{corseId}'
- Number of registered students
php bin/student-count.php
- Search student by name
php bin/student-search.php
- Change student name
php bin/student-rename.php
- Delete student
php bin/student-delete.php