Database schema updated successfully! "6" requests were completed, but in fact

I'm having big problems with the doctrine cache. Context:

  • updated schema (object with new table name)
  • cache deleted (permanently deleted manually)
  • cleared cache (using doctrine command)

    rm -fr var / cache / prod / rm -fr var / cache / dev / rm -fr var / cache / de *

    php bin / console doctrine: cache: clear-metadata --env = prod php bin / console doctrine: cache: clear-query --env = prod php bin / console doctrine: cache: clear-result --env = prod

After this sequence of commands ... I am trying to update the schema. As you can see, it doctrine:schema:update

says that the requests have been fulfilled. But the point is, the message is always the same. Also ... I can tell that the entity object annotation has changed ...

from

/**
 * @ORM\Table(name="u_i_options")
 * @ORM\Entity(repositoryClass="AppBundle\Repository\UIOptionsRepository")
 * @JMS\ExclusionPolicy("all")
 */

      

to

/**
 * @ORM\Table(name="uioptions")
 * @ORM\Entity(repositoryClass="AppBundle\Repository\UIOptionsRepository")
 * @JMS\ExclusionPolicy("all")
 */

      

So ... the scheme has finally changed.

 forge@foo:~/api-test.example.com$ php ./bin/console doctrine:schema:update --env=prod --force
PHP Warning:  Module 'newrelic' already loaded in Unknown on line 0
Updating database schema...
Database schema updated successfully! "6" queries were executed
forge@foo:~/api-test.example.com$ php ./bin/console doctrine:schema:update --env=prod --force
PHP Warning:  Module 'newrelic' already loaded in Unknown on line 0
Updating database schema...
Database schema updated successfully! "6" queries were executed
forge@mt-test:~/api-test.example.com$ php ./bin/console doctrine:schema:update --env=prod --force
PHP Warning:  Module 'newrelic' already loaded in Unknown on line 0
Updating database schema...
Database schema updated successfully! "6" queries were executed
forge@foo:~/api-test.example.com$ php ./bin/console doctrine:schema:update --env=prod --force
PHP Warning:  Module 'newrelic' already loaded in Unknown on line 0
Updating database schema...
Database schema updated successfully! "6" queries were executed

      

Apart from restarting the php service, the problem persists: this command sequence does not update the schema.

I also disabled all doctrine cache configurations.

+3


source to share





All Articles