Category: postgresql

Symfony Not null violation: 7 ERROR: null value in column "id"

I get this error when trying to create new entity called "Nuclei" This is the entity class: /** * Nuclei * * @ORMTable(name="datinuclei") * @ORMEntity(repositoryClass="AppRepositoryNucleiRepository") */ class Nuclei { /** * @var int * * @ORMId * @ORMColumn(name="id", type="integer", nullable=false)…

How migrate to specific schema of database PostgreSQL working with Symfony and Doctrine?

I did a migration after of created my database structure using make:entity command : $ symfony console make:migration Now, I want to migrate to a specific schema into my PostgresSQL database. In the documentation of Symfony says: MANUAL TABLES. It…

Symfony/PostGreSQL : An exception occurred in driver: could not find driver

i’m using Symfony 4.3.4 with a PostGreSQL server version 12.1, and i have some difficulties to connect my project to the database. I edited the .env file like that : DATABASE_URL=postgresql://user:[email protected]:5432/database?serverVersion=12.1&charset=utf8 After that i tried to make migrations, but i…