I am trying to create entities but I have an error, the entity is created in the project but nothing created in the database.
Here is the error message:

and this is the generated Class
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\CategoryRepository")
*/
class Category
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
public function getId(): ?int
{
return $this->id;
}
}
and this is my doctrine.yaml
doctrine:
dbal:
# configure these for your database server
driver: 'pdo_mysql'
server_version: '8.0.18'
charset: utf8mb4
host: 127.0.0.1
port: 3306
user: 'root'
password: 'root'
dbname: 'omega'
# dbname: '%env(DATABASE_NAME)%'