Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 15

PS C:\Users\user\Desktop\Symfony\test6> symfony console

Symfony 6.1.12 (env: dev, debug: true) #StandWithUkraine https://sf.to/ukraine

Usage:
command [options] [arguments]

Options:
-h, --help Display help for the given command. When no command is
given display help for the list command
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi|--no-ansi Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
-e, --env=ENV The Environment name. [default: "dev"]
--no-debug Switch off debug mode.
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2
for more verbose output and 3 for debug

Available commands:
about Display information about the current
project
completion Dump the shell completion script
help Display help for a command
list List commands
assets
assets:install Install bundle's web assets under a
public directory
cache
cache:clear Clear the cache
cache:pool:clear Clear cache pools
cache:pool:delete Delete an item from a cache pool
cache:pool:invalidate-tags Invalidate cache tags for all or a
specific pool
cache:pool:list List available cache pools
cache:pool:prune Prune cache pools
cache:warmup Warm up an empty cache
config
config:dump-reference Dump the default configuration for an
extension
dbal
dbal:run-sql Executes arbitrary SQL directly from
the command line.
debug
debug:autowiring List classes/interfaces you can use
for autowiring
debug:config Dump the current configuration for an
extension
debug:container Display current services for an
application
debug:dotenv Lists all dotenv files with variables
and values
debug:event-dispatcher Display configured listeners for an
application
debug:firewall Display information about your
security firewall(s)
debug:form Display form type information
debug:messenger List messages you can dispatch using
the message buses
debug:router Display current routes for an
application
debug:translation Display translation messages
information
debug:twig Show a list of twig functions,
filters, globals and tests
debug:validator Display validation constraints for
classes
doctrine
doctrine:cache:clear-collection-region Clear a second-level cache collection
region
doctrine:cache:clear-entity-region Clear a second-level cache entity
region
doctrine:cache:clear-metadata Clear all metadata cache of the
various cache drivers
doctrine:cache:clear-query Clear all query cache of the various
cache drivers
doctrine:cache:clear-query-region Clear a second-level cache query
region
doctrine:cache:clear-result Clear all result cache of the various
cache drivers
doctrine:database:create Creates the configured database
doctrine:database:drop Drops the configured database
doctrine:ensure-production-settings Verify that Doctrine is properly
configured for a production environment
doctrine:mapping:convert [orm:convert:mapping] Convert mapping
information between supported formats
doctrine:mapping:import Imports mapping information from an
existing database
doctrine:mapping:info Show basic information about all
mapped entities
doctrine:migrations:current Outputs the current version
doctrine:migrations:diff Generate a migration by comparing your
current database to your mapping information.
doctrine:migrations:dump-schema Dump the schema for your database to a
migration.
doctrine:migrations:execute Execute one or more migration versions
up or down manually.
doctrine:migrations:generate Generate a blank migration class.
doctrine:migrations:latest Outputs the latest version
doctrine:migrations:list Display a list of all available
migrations and their status.
doctrine:migrations:migrate Execute a migration to a specified
version or the latest available version.
doctrine:migrations:rollup Rollup migrations by deleting all
tracked versions and insert the one version that exists.
doctrine:migrations:status View the status of a set of
migrations.
doctrine:migrations:sync-metadata-storage Ensures that the metadata storage is
at the latest version.
doctrine:migrations:up-to-date Tells you if your schema is up-to-
date.
doctrine:migrations:version Manually add and delete migration
versions from the version table.
doctrine:query:dql Executes arbitrary DQL directly from
the command line
doctrine:query:sql Executes arbitrary SQL directly from
the command line.
doctrine:schema:create Processes the schema and either create
it directly on EntityManager Storage Connection or generate the SQL output
doctrine:schema:drop Drop the complete database schema of
EntityManager Storage Connection or generate the corresponding SQL output
doctrine:schema:update Executes (or dumps) the SQL needed to
update the database schema to match the current mapping metadata
doctrine:schema:validate Validate the mapping files
lint
lint:container Ensure that arguments injected into
services match type declarations
lint:twig Lint a Twig template and outputs
encountered errors
lint:xliff Lint an XLIFF file and outputs
encountered errors
lint:yaml Lint a YAML file and outputs
encountered errors
make
make:auth Creates a Guard authenticator of
different flavors
make:command Creates a new console command class
make:controller Creates a new controller class
make:crud Creates CRUD for Doctrine entity class
make:docker:database Adds a database container to your
docker-compose.yaml file
make:entity Creates or updates a Doctrine entity
class, and optionally an API Platform resource
make:fixtures Creates a new class to load Doctrine
fixtures
make:form Creates a new form class
make:message Creates a new message and handler
make:messenger-middleware Creates a new messenger middleware
make:migration Creates a new migration based on
database changes
make:registration-form Creates a new registration form system
make:reset-password Create controller, entity, and
repositories for use with symfonycasts/reset-password-bundle
make:security:form-login Generate the code needed for the
form_login authenticator
make:serializer:encoder Creates a new serializer encoder class
make:serializer:normalizer Creates a new serializer normalizer
class
make:stimulus-controller Creates a new Stimulus controller
make:subscriber Creates a new event subscriber class
make:test [make:unit-test|make:functional-test]
Creates a new test class
make:twig-component Creates a twig (or live) component
make:twig-extension Creates a new Twig extension with its
runtime class
make:user Creates a new security user class
make:validator Creates a new validator and constraint
class
make:voter Creates a new security voter class
messenger
messenger:consume Consume messages
messenger:failed:remove Remove given messages from the failure
transport
messenger:failed:retry Retry one or more messages from the
failure transport
messenger:failed:show Show one or more messages from the
failure transport
messenger:setup-transports Prepare the required infrastructure
for the transport
messenger:stop-workers Stop workers after their current
message
router
router:match Help debug routes by simulating a path
info match
secrets
secrets:decrypt-to-local Decrypt all secrets and stores them in
the local vault
secrets:encrypt-from-local Encrypt all local secrets to the vault
secrets:generate-keys Generate new encryption keys
secrets:list List all secrets
secrets:remove Remove a secret from the vault
secrets:set Set a secret in the vault
security
security:hash-password Hash a user password
server
server:dump Start a dump server that collects and
displays dumps in a single place
server:log Start a log server that displays logs
in real time
translation
translation:extract Extract missing translations keys from
code to translation files.
translation:pull Pull translations from a given
provider.
translation:push Push translations to a given provider.
PS C:\Users\user\Desktop\Symfony\test6> symfony console doctrine:database:create
Created database `formation` for connection named default
PS C:\Users\user\Desktop\Symfony\test6> symfony console make:entity

Class name of the entity to create or update (e.g. TinyPopsicle):


> institut

Add the ability to broadcast entity updates using Symfony UX Turbo? (yes/no) [no]:
> y

created: src/Entity/Institut.php
created: src/Repository/InstitutRepository.php
created: templates/broadcast/Institut.stream.html.twig

Entity generated! Now let's add some fields!


You can always add more fields later manually or by re-running this command.

New property name (press <return> to stop adding fields):


> nominstit

Field type (enter ? to see all types) [string]:


>

Field length [255]:


> 25

Can this field be null in the database (nullable) (yes/no) [no]:


> yes

updated: src/Entity/Institut.php

Add another property? Enter the property name (or press <return> to stop adding
fields):
> dept

Field type (enter ? to see all types) [string]:


>

Field length [255]:


> 12

Can this field be null in the database (nullable) (yes/no) [no]:


> yes

updated: src/Entity/Institut.php

Add another property? Enter the property name (or press <return> to stop adding
fields):
>

Success!

Next: When you're ready, create a migration with symfony.exe console


make:migration

PS C:\Users\user\Desktop\Symfony\test6> symfony console make:migration

created: migrations/Version20240106141903.php

Success!

Review the new migration then run it with symfony.exe console


doctrine:migrations:migrate
See https://symfony.com/doc/current/bundles/DoctrineMigrationsBundle/index.html
PS C:\Users\user\Desktop\Symfony\test6> symfony.exe console
doctrine:migrations:migrate

WARNING! You are about to execute a migration in database "formation" that could
result in schema changes and data loss. Are you sure you wish to continue? (yes/no)
[yes]:
>

[notice] Migrating up to DoctrineMigrations\Version20240106141903


[notice] finished in 379.9ms, used 20M memory, 1 migrations executed, 2 sql queries

[OK] Successfully migrated to version: DoctrineMigrations\Version20240106141903

PS C:\Users\user\Desktop\Symfony\test6> symfony console make:crud


[ERROR] Missing package: to use the make:crud command, run:

composer require annotations

PS C:\Users\user\Desktop\Symfony\test6> composer require annotations

./composer.json has been updated


Running composer update sensio/framework-extra-bundle
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires symfony/asset-mapper 6.1.*, found symfony/asset-
mapper[v6.3.0-BETA1, ..., 6.4.x-dev, v7.0.0-BETA1, ..., 7.1.x-dev] but it does not
match the constraint.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and


removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint,
e.g. "composer require sensio/framework-extra-bundle:*" to figure out if any
version is installable, or "composer require sensio/framework-extra-bundle:^2.1" if
you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their


original content.
PS C:\Users\user\Desktop\Symfony\test6> composer require annotations
./composer.json has been updated
Running composer update sensio/framework-extra-bundle
Loading composer repositories with package information
Updating dependencies
Lock file operations: 2 installs, 0 updates, 0 removals
- Locking doctrine/annotations (2.0.1)
- Locking sensio/framework-extra-bundle (v6.2.10)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 2 installs, 0 updates, 7 removals
- Downloading doctrine/annotations (2.0.1)
- Downloading sensio/framework-extra-bundle (v6.2.10)
- Removing symfony/webapp-pack (v1.3.0)
- Removing symfony/twig-pack (v1.0.1)
- Removing symfony/test-pack (v1.1.0)
- Removing symfony/serializer-pack (v1.3.0)
- Removing symfony/profiler-pack (v1.0.6)
- Removing symfony/orm-pack (v2.4.0)
- Removing symfony/debug-pack (v1.0.10)
- Installing doctrine/annotations (2.0.1): Extracting archive
- Installing sensio/framework-extra-bundle (v6.2.10): Extracting archive
Package sensio/framework-extra-bundle is abandoned, you should avoid using it. Use
Symfony instead.
Generating optimized autoload files
109 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
- Skipping recipe for symfony/asset-mapper: all versions of the recipe conflict
with your package versions.

Symfony operations: 3 recipes (d745c3d47bafcfe7e6266306a7723bca)


- Unconfiguring symfony/webapp-pack (>=1.0): From github.com/symfony/recipes:main
- Configuring doctrine/annotations (>=1.10): From github.com/symfony/recipes:main
- Configuring sensio/framework-extra-bundle (>=5.2): From
github.com/symfony/recipes:main
Executing script cache:clear [OK]
Executing script assets:install public [OK]

What's next?

Some files have been created and/or updated to configure your new packages.
Please review, edit and commit them: these files are yours.

Found 2 security vulnerability advisories affecting 2 packages.


Run "composer audit" for a full list of advisories.
Using version ^6.2 for sensio/framework-extra-bundle
PS C:\Users\user\Desktop\Symfony\test6> symfony console make:crud

The class name of the entity to create CRUD (e.g. GentlePuppy):


> Institut

Choose a name for your controller class (e.g. InstitutController)


[InstitutController]:
>

Do you want to generate tests for the controller?. [Experimental] (yes/no) [no]:
> no

created: src/Controller/InstitutController.php
created: src/Form/InstitutType.php
created: templates/institut/_delete_form.html.twig
created: templates/institut/_form.html.twig
created: templates/institut/edit.html.twig
created: templates/institut/index.html.twig
created: templates/institut/new.html.twig
created: templates/institut/show.html.twig

Success!

Next: Check your new CRUD by going to /institut/


PS C:\Users\user\Desktop\Symfony\test6> symfony server:start

[WARNING] run "symfony.exe server:ca:install" first if you want to run the web
server with TLS support, or us
e "--p12" or "--no-tls" to avoid this warning

Following Web Server log file (C:\Users\user\.symfony5\log\


e04d485f36de18dcc008c2ff3ba2f75515e52454.log)
Following PHP-CGI log file (C:\Users\user\.symfony5\log\
e04d485f36de18dcc008c2ff3ba2f75515e52454\79ca75f9e90b4126a5955a33ea6a41ec5e854698.l
og)
[WARNING] The local web server is optimized for local development and MUST never
be used in a production setu
p.

[OK] Web server listening

The Web server is using PHP CGI 8.2.4

http://127.0.0.1:8000

[Application] Jan 6 15:19:59 |DEBUG | DOCTRI Executing query: SELECT * FROM


doctrine_migration_versions sql="SELECT * FROM doctrine_migration_versions"
[Application] Jan 6 15:19:59 |DEBUG | DOCTRI Executing query: SELECT * FROM
doctrine_migration_versions
[Application] Jan 6 15:19:59 |DEBUG | DOCTRI Executing query: SELECT * FROM
doctrine_migration_versions
[Application] Jan 6 15:19:59 |DEBUG | DOCTRI Beginning transaction
[Application] Jan 6 15:19:59 |DEBUG | DOCTRI Executing query: CREATE TABLE
institut (id INT AUTO_INCREMENT NOT NULL, nominstit VARCHAR(25) DEFAULT NULL, dept
VARCHAR(12) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE
`utf8mb4_unicode_ci` ENGINE = InnoDB sql="CREATE TABLE institut (id INT
AUTO_INCREMENT NOT NULL, nominstit VARCHAR(25) DEFAULT NULL, dept VARCHAR(12)
DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE
`utf8mb4_unicode_ci` ENGINE = InnoDB"
[Application] Jan 6 15:19:59 |DEBUG | DOCTRI Executing query: CREATE TABLE
messenger_messages (id BIGINT AUTO_INCREMENT NOT NULL, body LONGTEXT NOT NULL,
headers LONGTEXT NOT NULL, queue_name VARCHAR(190) NOT NULL, created_at DATETIME
NOT NULL, available_at DATETIME NOT NULL, delivered_at DATETIME DEFAULT NULL, INDEX
IDX_75EA56E0FB7336F0 (queue_name), INDEX IDX_75EA56E0E3BD61CE (available_at), INDEX
IDX_75EA56E016BA31DB (delivered_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4
COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB sql="CREATE TABLE messenger_messages
(id BIGINT AUTO_INCREMENT NOT NULL, body LONGTEXT NOT NULL, headers LONGTEXT NOT
NULL, queue_name VARCHAR(190) NOT NULL, created_at DATETIME NOT NULL, available_at
DATETIME NOT NULL, delivered_at DATETIME DEFAULT NULL, INDEX IDX_75EA56E0FB7336F0
(queue_name), INDEX IDX_75EA56E0E3BD61CE (available_at), INDEX IDX_75EA56E016BA31DB
(delivered_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE
`utf8mb4_unicode_ci` ENGINE = InnoDB"
[Application] Jan 6 15:19:59 |DEBUG | DOCTRI Executing statement: INSERT INTO
doctrine_migration_versions (version, executed_at, execution_time) VALUES (?, ?, ?)
(parameters: array{"1":"DoctrineMigrations\\Version20240106141903","2":"2024-01-06
15:19:59","3":367}, types: array{"1":2,"2":2,"3":1})
params={"1":"DoctrineMigrations\\Version20240106141903","2":"2024-01-06
15:19:59","3":367} sql="INSERT INTO doctrine_migration_versions (version,
executed_at, execution_time) VALUES (?, ?, ?)" types={"1":2,"2":2,"3":1}
[Application] Jan 6 15:19:59 |INFO | DOCTRI Disconnecting
[Application] Jan 6 15:21:39 |DEBUG | CONSOL Command "make:crud" exited with code
"1" code=1 command="make:crud"
[Application] Jan 6 15:24:00 |INFO | DEPREC User Deprecated: The "Monolog\
Logger" class is considered final. It may change without further notice as of its
next major version. You should not extend it from "Symfony\Bridge\Monolog\Logger".
[Web Server ] Jan 6 15:27:12 |DEBUG | PHP Reloading PHP versions
[Web Server ] Jan 6 15:27:22 |DEBUG | PHP Using PHP version 8.2.4 (from
default version in $PATH)
[Web Server ] Jan 6 15:27:22 |INFO | PHP listening path="C:\\xampp\\php\\php-
cgi.exe" php="8.2.4" port=57745
[Application] Jan 6 15:30:03 |INFO | DEPREC User Deprecated: The "Monolog\
Logger" class is considered final. It may change without further notice as of its
next major version. You should not extend it from "Symfony\Bridge\Monolog\Logger".
[Application] Jan 6 15:30:07 |ERROR | REQUES Uncaught PHP Exception Symfony\
Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET
http://127.0.0.1:8000/"" at C:\Users\user\Desktop\Symfony\test6\vendor\symfony\
http-kernel\EventListener\RouterListener.php line 128
[Web Server ] Jan 6 15:30:08 |WARN | SERVER GET (404) / ip="127.0.0.1"
[Application] Jan 6 15:30:08 |ERROR | REQUES Uncaught PHP Exception Symfony\
Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET
http://127.0.0.1:8000/favicon.ico" (from "http://127.0.0.1:8000/")" at C:\Users\
user\Desktop\Symfony\test6\vendor\symfony\http-kernel\EventListener\
RouterListener.php line 128
[Web Server ] Jan 6 15:30:09 |WARN | SERVER GET (404) /favicon.ico
ip="127.0.0.1"
[Application] Jan 6 15:30:09 |INFO | REQUES Matched route "_wdt". method="GET"
request_uri="http://127.0.0.1:8000/_wdt/5b1e9e" route="_wdt"
route_parameters={"_controller":"web_profiler.controller.profiler::toolbarAction","
_route":"_wdt","token":"5b1e9e"}
[Web Server ] Jan 6 15:30:09 |INFO | SERVER GET (200) /_wdt/5b1e9e
ip="127.0.0.1"
[Application] Jan 6 15:30:23 |INFO | REQUES Matched route "app_institut_index".
method="GET" request_uri="http://127.0.0.1:8000/institut"
route="app_institut_index" route_parameters={"_controller":"Symfony\\Bundle\\
FrameworkBundle\\Controller\\
RedirectController::urlRedirectAction","_route":"app_institut_index","httpPort":800
0,"httpsPort":443,"path":"/institut/","permanent":true,"scheme":null}
[Application] Jan 6 15:30:23 |DEBUG | SECURI Checking for authenticator support.
authenticators=0 firewall_name="main"
[Application] Jan 6 15:30:24 |INFO | REQUES Matched route "app_institut_index".
method="GET" request_uri="http://127.0.0.1:8000/institut/"
route="app_institut_index" route_parameters={"_controller":"App\\Controller\\
InstitutController::index","_route":"app_institut_index"}
[Application] Jan 6 15:30:24 |DEBUG | SECURI Checking for authenticator support.
authenticators=0 firewall_name="main"
[Web Server ] Jan 6 15:30:24 |INFO | SERVER GET (301) /institut ip="127.0.0.1"
[Application] Jan 6 15:30:24 |INFO | DOCTRI Connecting with parameters
array{"driver":"pdo_mysql","host":"127.0.0.1","port":3306,"user":"root","password":
"<redacted>","driverOptions":[],"defaultTableOptions":
[],"dbname":"formation","serverVersion":"8","charset":"utf8mb4"}
params={"charset":"utf8mb4","dbname":"formation","defaultTableOptions":
[],"driver":"pdo_mysql","driverOptions":[],"host":"127.0.0.1","password":"\
u003credacted\u003e","port":3306,"serverVersion":"8","user":"root"}
[Application] Jan 6 15:30:24 |DEBUG | DOCTRI Executing query: SELECT t0.id AS
id_1, t0.nominstit AS nominstit_2, t0.dept AS dept_3 FROM institut t0 sql="SELECT
t0.id AS id_1, t0.nominstit AS nominstit_2, t0.dept AS dept_3 FROM institut t0"
[Application] Jan 6 15:30:24 |INFO | DOCTRI Disconnecting
[Web Server ] Jan 6 15:30:24 |INFO | SERVER GET (200) /institut/ ip="127.0.0.1"
[Application] Jan 6 15:30:25 |INFO | REQUES Matched route "_wdt". method="GET"
request_uri="http://127.0.0.1:8000/_wdt/233892" route="_wdt"
route_parameters={"_controller":"web_profiler.controller.profiler::toolbarAction","
_route":"_wdt","token":"233892"}
[Web Server ] Jan 6 15:30:25 |INFO | SERVER GET (200) /_wdt/233892
ip="127.0.0.1"
[Application] Jan 6 15:30:34 |INFO | REQUES Matched route "app_institut_new".
method="GET" request_uri="http://127.0.0.1:8000/institut/new"
route="app_institut_new" route_parameters={"_controller":"App\\Controller\\
InstitutController::new","_route":"app_institut_new"}
[Application] Jan 6 15:30:34 |DEBUG | SECURI Checking for authenticator support.
authenticators=0 firewall_name="main"
[Web Server ] Jan 6 15:30:35 |INFO | SERVER GET (200) /institut/new
ip="127.0.0.1"
[Application] Jan 6 15:30:35 |INFO | REQUES Matched route "_wdt". method="GET"
request_uri="http://127.0.0.1:8000/_wdt/e8d73c" route="_wdt"
route_parameters={"_controller":"web_profiler.controller.profiler::toolbarAction","
_route":"_wdt","token":"e8d73c"}
[Web Server ] Jan 6 15:30:35 |INFO | SERVER GET (200) /_wdt/e8d73c
ip="127.0.0.1"
[Application] Jan 6 15:30:48 |INFO | REQUES Matched route "app_institut_new".
method="POST" request_uri="http://127.0.0.1:8000/institut/new"
route="app_institut_new" route_parameters={"_controller":"App\\Controller\\
InstitutController::new","_route":"app_institut_new"}
[Application] Jan 6 15:30:48 |DEBUG | SECURI Checking for authenticator support.
authenticators=0 firewall_name="main"
[Application] Jan 6 15:30:50 |INFO | DOCTRI Connecting with parameters
array{"driver":"pdo_mysql","host":"127.0.0.1","port":3306,"user":"root","password":
"<redacted>","driverOptions":[],"defaultTableOptions":
[],"dbname":"formation","serverVersion":"8","charset":"utf8mb4"}
params={"charset":"utf8mb4","dbname":"formation","defaultTableOptions":
[],"driver":"pdo_mysql","driverOptions":[],"host":"127.0.0.1","password":"\
u003credacted\u003e","port":3306,"serverVersion":"8","user":"root"}
[Application] Jan 6 15:30:50 |DEBUG | DOCTRI Beginning transaction
[Application] Jan 6 15:30:51 |DEBUG | DOCTRI Executing statement: INSERT INTO
institut (nominstit, dept) VALUES (?, ?) (parameters:
array{"1":"esiet","2":"info"}, types: array{"1":2,"2":2})
params={"1":"esiet","2":"info"} sql="INSERT INTO institut (nominstit, dept) VALUES
(?, ?)" types={"1":2,"2":2}
[Application] Jan 6 15:30:51 |DEBUG | DOCTRI Committing transaction
[Application] Jan 6 15:30:51 |INFO | DOCTRI Disconnecting
[Application] Jan 6 15:30:51 |INFO | REQUES Matched route "app_institut_index".
method="GET" request_uri="http://127.0.0.1:8000/institut/"
route="app_institut_index" route_parameters={"_controller":"App\\Controller\\
InstitutController::index","_route":"app_institut_index"}
[Application] Jan 6 15:30:51 |DEBUG | SECURI Checking for authenticator support.
authenticators=0 firewall_name="main"
[Application] Jan 6 15:30:51 |INFO | DOCTRI Connecting with parameters
array{"driver":"pdo_mysql","host":"127.0.0.1","port":3306,"user":"root","password":
"<redacted>","driverOptions":[],"defaultTableOptions":
[],"dbname":"formation","serverVersion":"8","charset":"utf8mb4"}
params={"charset":"utf8mb4","dbname":"formation","defaultTableOptions":
[],"driver":"pdo_mysql","driverOptions":[],"host":"127.0.0.1","password":"\
u003credacted\u003e","port":3306,"serverVersion":"8","user":"root"}
[Web Server ] Jan 6 15:30:51 |INFO | SERVER POST (303) /institut/new
host="127.0.0.1:8004" ip="127.0.0.1" scheme="https"
[Application] Jan 6 15:30:51 |DEBUG | DOCTRI Executing query: SELECT t0.id AS
id_1, t0.nominstit AS nominstit_2, t0.dept AS dept_3 FROM institut t0 sql="SELECT
t0.id AS id_1, t0.nominstit AS nominstit_2, t0.dept AS dept_3 FROM institut t0"
[Application] Jan 6 15:30:51 |INFO | DOCTRI Disconnecting
[Web Server ] Jan 6 15:30:51 |INFO | SERVER GET (200) /institut/ ip="127.0.0.1"
[Application] Jan 6 15:30:51 |INFO | REQUES Matched route "_wdt". method="GET"
request_uri="http://127.0.0.1:8000/_wdt/01d89a" route="_wdt"
route_parameters={"_controller":"web_profiler.controller.profiler::toolbarAction","
_route":"_wdt","token":"01d89a"}
[Web Server ] Jan 6 15:30:51 |INFO | SERVER GET (200) /_wdt/01d89a
ip="127.0.0.1"
[Application] Jan 6 15:30:56 |INFO | REQUES Matched route "app_institut_show".
method="GET" request_uri="http://127.0.0.1:8000/institut/1"
route="app_institut_show" route_parameters={"_controller":"App\\Controller\\
InstitutController::show","_route":"app_institut_show","id":"1"}
[Application] Jan 6 15:30:56 |DEBUG | SECURI Checking for authenticator support.
authenticators=0 firewall_name="main"
[Application] Jan 6 15:30:56 |INFO | DOCTRI Connecting with parameters
array{"driver":"pdo_mysql","host":"127.0.0.1","port":3306,"user":"root","password":
"<redacted>","driverOptions":[],"defaultTableOptions":
[],"dbname":"formation","serverVersion":"8","charset":"utf8mb4"}
params={"charset":"utf8mb4","dbname":"formation","defaultTableOptions":
[],"driver":"pdo_mysql","driverOptions":[],"host":"127.0.0.1","password":"\
u003credacted\u003e","port":3306,"serverVersion":"8","user":"root"}
[Application] Jan 6 15:30:56 |DEBUG | DOCTRI Executing statement: SELECT t0.id AS
id_1, t0.nominstit AS nominstit_2, t0.dept AS dept_3 FROM institut t0 WHERE t0.id =
? (parameters: array{"1":"1"}, types: array{"1":1}) params={"1":"1"} sql="SELECT
t0.id AS id_1, t0.nominstit AS nominstit_2, t0.dept AS dept_3 FROM institut t0
WHERE t0.id = ?" types={"1":1}
[Web Server ] Jan 6 15:30:57 |INFO | SERVER GET (200) /institut/1
ip="127.0.0.1"
[Application] Jan 6 15:30:57 |INFO | DOCTRI Disconnecting
[Application] Jan 6 15:30:57 |INFO | REQUES Matched route "_wdt". method="GET"
request_uri="http://127.0.0.1:8000/_wdt/3f6fda" route="_wdt"
route_parameters={"_controller":"web_profiler.controller.profiler::toolbarAction","
_route":"_wdt","token":"3f6fda"}
[Web Server ] Jan 6 15:30:57 |INFO | SERVER GET (200) /_wdt/3f6fda
ip="127.0.0.1"
[Application] Jan 6 15:32:21 |INFO | REQUES Matched route "app_institut_edit".
method="GET" request_uri="http://127.0.0.1:8000/institut/1/edit"
route="app_institut_edit" route_parameters={"_controller":"App\\Controller\\
InstitutController::edit","_route":"app_institut_edit","id":"1"}
[Application] Jan 6 15:32:21 |DEBUG | SECURI Checking for authenticator support.
authenticators=0 firewall_name="main"
[Application] Jan 6 15:32:21 |INFO | DOCTRI Connecting with parameters
array{"driver":"pdo_mysql","host":"127.0.0.1","port":3306,"user":"root","password":
"<redacted>","driverOptions":[],"defaultTableOptions":
[],"dbname":"formation","serverVersion":"8","charset":"utf8mb4"}
params={"charset":"utf8mb4","dbname":"formation","defaultTableOptions":
[],"driver":"pdo_mysql","driverOptions":[],"host":"127.0.0.1","password":"\
u003credacted\u003e","port":3306,"serverVersion":"8","user":"root"}
[Application] Jan 6 15:32:21 |DEBUG | DOCTRI Executing statement: SELECT t0.id AS
id_1, t0.nominstit AS nominstit_2, t0.dept AS dept_3 FROM institut t0 WHERE t0.id =
? (parameters: array{"1":"1"}, types: array{"1":1}) params={"1":"1"} sql="SELECT
t0.id AS id_1, t0.nominstit AS nominstit_2, t0.dept AS dept_3 FROM institut t0
WHERE t0.id = ?" types={"1":1}
[Web Server ] Jan 6 15:32:21 |INFO | SERVER GET (200) /institut/1/edit
ip="127.0.0.1"
[Application] Jan 6 15:32:21 |INFO | DOCTRI Disconnecting
[Application] Jan 6 15:32:21 |INFO | REQUES Matched route "_wdt". method="GET"
request_uri="http://127.0.0.1:8000/_wdt/22bda4" route="_wdt"
route_parameters={"_controller":"web_profiler.controller.profiler::toolbarAction","
_route":"_wdt","token":"22bda4"}
[Web Server ] Jan 6 15:32:21 |INFO | SERVER GET (200) /_wdt/22bda4
ip="127.0.0.1"
[Application] Jan 6 15:32:32 |INFO | REQUES Matched route "app_institut_edit".
method="POST" request_uri="http://127.0.0.1:8000/institut/1/edit"
route="app_institut_edit" route_parameters={"_controller":"App\\Controller\\
InstitutController::edit","_route":"app_institut_edit","id":"1"}
[Application] Jan 6 15:32:32 |DEBUG | SECURI Checking for authenticator support.
authenticators=0 firewall_name="main"
[Application] Jan 6 15:32:32 |INFO | DOCTRI Connecting with parameters
array{"driver":"pdo_mysql","host":"127.0.0.1","port":3306,"user":"root","password":
"<redacted>","driverOptions":[],"defaultTableOptions":
[],"dbname":"formation","serverVersion":"8","charset":"utf8mb4"}
params={"charset":"utf8mb4","dbname":"formation","defaultTableOptions":
[],"driver":"pdo_mysql","driverOptions":[],"host":"127.0.0.1","password":"\
u003credacted\u003e","port":3306,"serverVersion":"8","user":"root"}
[Application] Jan 6 15:32:32 |DEBUG | DOCTRI Executing statement: SELECT t0.id AS
id_1, t0.nominstit AS nominstit_2, t0.dept AS dept_3 FROM institut t0 WHERE t0.id =
? (parameters: array{"1":"1"}, types: array{"1":1}) params={"1":"1"} sql="SELECT
t0.id AS id_1, t0.nominstit AS nominstit_2, t0.dept AS dept_3 FROM institut t0
WHERE t0.id = ?" types={"1":1}
[Application] Jan 6 15:32:32 |DEBUG | DOCTRI Beginning transaction
[Application] Jan 6 15:32:32 |DEBUG | DOCTRI Executing statement: UPDATE institut
SET nominstit = ? WHERE id = ? (parameters: array{"1":"esiet2","2":1}, types:
array{"1":2,"2":1}) params={"1":"esiet2","2":1} sql="UPDATE institut SET nominstit
= ? WHERE id = ?" types={"1":2,"2":1}
[Application] Jan 6 15:32:32 |DEBUG | DOCTRI Committing transaction
[Application] Jan 6 15:32:32 |INFO | DOCTRI Disconnecting
[Web Server ] Jan 6 15:32:32 |INFO | SERVER POST (303) /institut/1/edit
host="127.0.0.1:8004" ip="127.0.0.1" scheme="https"
[Application] Jan 6 15:32:32 |INFO | REQUES Matched route "app_institut_index".
method="GET" request_uri="http://127.0.0.1:8000/institut/"
route="app_institut_index" route_parameters={"_controller":"App\\Controller\\
InstitutController::index","_route":"app_institut_index"}
[Application] Jan 6 15:32:32 |DEBUG | SECURI Checking for authenticator support.
authenticators=0 firewall_name="main"
[Application] Jan 6 15:32:32 |INFO | DOCTRI Connecting with parameters
array{"driver":"pdo_mysql","host":"127.0.0.1","port":3306,"user":"root","password":
"<redacted>","driverOptions":[],"defaultTableOptions":
[],"dbname":"formation","serverVersion":"8","charset":"utf8mb4"}
params={"charset":"utf8mb4","dbname":"formation","defaultTableOptions":
[],"driver":"pdo_mysql","driverOptions":[],"host":"127.0.0.1","password":"\
u003credacted\u003e","port":3306,"serverVersion":"8","user":"root"}
[Application] Jan 6 15:32:32 |DEBUG | DOCTRI Executing query: SELECT t0.id AS
id_1, t0.nominstit AS nominstit_2, t0.dept AS dept_3 FROM institut t0 sql="SELECT
t0.id AS id_1, t0.nominstit AS nominstit_2, t0.dept AS dept_3 FROM institut t0"
[Application] Jan 6 15:32:32 |INFO | DOCTRI Disconnecting
[Web Server ] Jan 6 15:32:32 |INFO | SERVER GET (200) /institut/ ip="127.0.0.1"
[Application] Jan 6 15:32:32 |INFO | REQUES Matched route "_wdt". method="GET"
request_uri="http://127.0.0.1:8000/_wdt/069281" route="_wdt"
route_parameters={"_controller":"web_profiler.controller.profiler::toolbarAction","
_route":"_wdt","token":"069281"}
[Web Server ] Jan 6 15:32:33 |INFO | SERVER GET (200) /_wdt/069281
ip="127.0.0.1"

Shutting down!

TerminateProcess: Access is denied.

PS C:\Users\user\Desktop\Symfony\test6> symfony console make:entity

Class name of the entity to create or update (e.g. AgreeableGnome):


> apprenant

Add the ability to broadcast entity updates using Symfony UX Turbo? (yes/no) [no]:
> no

created: src/Entity/Apprenant.php
created: src/Repository/ApprenantRepository.php

Entity generated! Now let's add some fields!


You can always add more fields later manually or by re-running this command.

New property name (press <return> to stop adding fields):


> nomapp

Field type (enter ? to see all types) [string]:


>

Field length [255]:


> &à

[ERROR] Invalid length "&à".

Field length [255]:


> 10

Can this field be null in the database (nullable) (yes/no) [no]:


> y

updated: src/Entity/Apprenant.php

Add another property? Enter the property name (or press <return> to stop adding
fields):
> prenomapp

Field type (enter ? to see all types) [string]:


>

Field length [255]:


> 10

Can this field be null in the database (nullable) (yes/no) [no]:


> y

updated: src/Entity/Apprenant.php

Add another property? Enter the property name (or press <return> to stop adding
fields):
> adresse

Field type (enter ? to see all types) [string]:


>

Field length [255]:


> 12

Can this field be null in the database (nullable) (yes/no) [no]:


> y
updated: src/Entity/Apprenant.php

Add another property? Enter the property name (or press <return> to stop adding
fields):
> instit

Field type (enter ? to see all types) [string]:


> relation

What class should this entity be related to?:


> Institut

What type of relationship is this?


------------
--------------------------------------------------------------------------
Type Description
------------
--------------------------------------------------------------------------
ManyToOne Each Apprenant relates to (has) one Institut.
Each Institut can relate to (can have) many Apprenant objects.

OneToMany Each Apprenant can relate to (can have) many Institut objects.
Each Institut relates to (has) one Apprenant.

ManyToMany Each Apprenant can relate to (can have) many Institut objects.
Each Institut can also relate to (can also have) many Apprenant
objects.

OneToOne Each Apprenant relates to (has) exactly one Institut.


Each Institut also relates to (has) exactly one Apprenant.
------------
--------------------------------------------------------------------------

Relation type? [ManyToOne, OneToMany, ManyToMany, OneToOne]:


> ManyToOne

Is the Apprenant.instit property allowed to be null (nullable)? (yes/no) [yes]:


> n

Do you want to add a new property to Institut so that you can access/update
Apprenant objects from it - e.g. $institut->getApprenants()? (yes/no) [yes]:
> n

updated: src/Entity/Apprenant.php

Add another property? Enter the property name (or press <return> to stop adding
fields):
> error sending signal interrupt not supported by windows
PS C:\Users\user\Desktop\Symfony\test6> symfony console make:migration

In MetadataStorageError.php line 13:

The metadata storage is not up to date, please run the sync-metadata-storage


command to fix this issue.
make:migration

PS C:\Users\user\Desktop\Symfony\test6> symfony console make:migration

PS C:\Users\user\Desktop\Symfony\test6> symfony console make:migration

In MetadataStorageError.php line 13:

The metadata storage is not up to date, please run the sync-metadata-storage


command to fix this issue.

make:migration

You might also like