CLI
Create a new project
composer create-project symfony/website-skeleton ExampleProjectName
composer require symfony/apache-packCreate a new table (entity)
php bin/console make:entity
php bin/console make:migrationCreating a controller
php bin/console make:controller DashboardControllerUpdating DB after entity changes
php bin/console make:migration
php bin/console doctrine:migrations:migrateCRUD Initialization
php bin/console make:crudReview Routing
php bin/console debug:routerMySQL
use mysql;
mysql> SET PASSWORD for 'root'@'localhost' = password('enteryourpassword');
mysql> SET PASSWORD for 'root'@'127.0.0.1' = password('enteryourpassword');
mysql> SET PASSWORD for 'root'@'::1' = password('enteryourpassword');
OR
update user set authentication_string=password('your_password') where user='root';
FLUSH PRIVILEGES;
quit
-----
Educational Resources
| Title & Link | Author | Subjects (by keyword) |
|---|---|---|
| Symfony 5 - Mastering Doctrine Relations: The ManyToOne Relation (Chapter 02) | symfonycasts.com | Entities, ManyToOne (Relation), ORM (Doctrine) |
| Symfony 5 - Mastering Doctrine Relations: Saving Relations (Chapter 03) | symfonycasts.com | Data Fixtures, Migrations, ORM (Doctrine) |
| Symfony 5 - Mastering Doctrine Relations: Relations in Foundry (Chapter 04) | symfonycasts.com | Faker, factory (Fixtures), Foundry |
-----
to review: