CLI
Create a new project
composer create-project symfony/website-skeleton ExampleProjectName
composer require symfony/apache-pack
Create a new table (entity)
php bin/console make:entity
php bin/console make:migration
Creating a controller
php bin/console make:controller DashboardController
Updating DB after entity changes
php bin/console make:migration
php bin/console doctrine:migrations:migrate
CRUD Initialization
php bin/console make:crud
Review Routing
php bin/console debug:router
MySQL
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: