Doctrine\ORM - Deprecated: reliance on the non-optimal defaults that come with the AUTO identifier generation strategy
follow to #48 (comment 126360) and 3ba2ef07
see:
- https://github.com/doctrine/orm/blob/2.17.x/UPGRADE.md#deprecated-reliance-on-the-non-optimal-defaults-that-come-with-the-auto-identifier-generation-strategy
- https://stackoverflow.com/questions/25351858/doctrine-update-schema-with-postgresql-sequence-on-primary-key
- https://www.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html#identifier-generation-strategies
Relying on non-optimal defaults for ID generation is deprecated, and IDENTITY
results in SERIAL, which is not recommended.
Instead, configure identifier generation strategies explicitly through
configuration.
We currently recommend "SEQUENCE" for "Doctrine\DBAL\Platforms\PostgreSqlPlatform", so you should use
$configuration->setIdentityGenerationPreferences([
"Doctrine\DBAL\Platforms\PostgreSqlPlatform" => ClassMetadata::GENERATOR_TYPE_SEQUENCE,
]); (ClassMetadataFactory.php:766 called by ClassMetadataFactory.php:625, https://github.com/doctrine/orm/issues/8893, package doctrine/orm)
26x in FunctionalTestSecurityTest::testAdministratorCanBrowseHisUrls from App\Tests\Functional
24x in FunctionalTestSecurityTest::testConnectedUserIsDenyToBrowseAdministratorUrls from App\Tests\Functional
24x in FunctionalTestSecurityTest::testManagerIsDenyToBrowseAdministratorUrls from App\Tests\Functional
24x in FunctionalTestConnectedUserCanChangePasswordTest::testConnectedUserCanChangePasswordAndCanLoginWithNewPassword from App\Tests\Functional\User
18x in FunctionalTestAdministratorManageUsersTest::testAdminCanAddManagerAccount from App\Tests\Functional\Administrator
...