php - Doctrine Migrations Postgresql Symfony generates empty migrations
Get the solution ↓↓↓I'm trying to make migrations based on a diff of my entities. I'm expecting for the initial run (and following runs) that doctrine generates a migration with the diff. I've tried the following solution but this results in "No changes detected in your mapping information." I've poked and went thru the doctrine migrations source code to see if I can extend/alter the behavior to no results. I also found related issues in doctine dbal like this one and this one.
Is doctrine migrations still the way or is there another lib which is better suited for this problem?
I'm running PHP 7.4.4, Symfony 5.0.6, Doctrine Migrations 2.2.6 (latest stable), Postgres 12.1.
Doctrine config:
doctrine:
dbal:
driver: 'pdo_pgsql'
server_version: '12.1'
charset: utf8
url: '%env(resolve:DATABASE_URL)%'
dbname: storage001
default_dbname: storage001
Entity example:
/**
* @ORM\Table(schema="storage001", name="entityName")
*/
class EntityClass1
{
...
}
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: trying to access array offset on value of type bool in
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.