You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ composer show --latest 'doctrine/*'
Color legend:
- patch or minor release available - update recommended
- major release available - update possible
- up to date version
Direct dependencies required in composer.json:
doctrine/annotations 2.0.1 2.0.1 Docblock Annotations Parser
doctrine/doctrine-bundle 2.10.2 2.10.2 Symfony DoctrineBundle
doctrine/doctrine-fixtures-bundle 3.4.4 3.4.4 Symfony DoctrineFixturesBundle
doctrine/doctrine-migrations-bundle 3.2.4 3.2.4 Symfony DoctrineMigrationsBundle
doctrine/orm 2.16.1 2.16.1 Object-Relational-Mapper for PHP
Transitive dependencies not required in composer.json:
doctrine/cache 2.2.0 2.2.0 PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, memcache, apc, mongodb and others.
doctrine/collections 2.1.3 2.1.3 PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.
doctrine/common 3.4.3 3.4.3 PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projects depend on such as better reflection support, proxies and much more.
doctrine/data-fixtures 1.6.7 1.6.7 Data Fixtures for all Doctrine Object Managers
doctrine/dbal 3.6.6 3.6.6 Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.
doctrine/deprecations v1.1.1 v1.1.1 A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.
doctrine/event-manager 2.0.0 2.0.0 The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.
doctrine/inflector 2.0.8 2.0.8 PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.
doctrine/instantiator 2.0.0 2.0.0 A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer 2.1.0 3.0.0 PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.
doctrine/migrations 3.6.0 3.6.0 PHP Doctrine Migrations project offer additional functionality on top of the database abstraction layer (DBAL) for versioning your database schema and easily deploying changes to it. It is a very easy to use and a powerful ...
doctrine/persistence 3.2.0 3.2.0 The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.
doctrine/sql-formatter 1.1.3 1.1.3 a PHP SQL highlighting library
PHP version
$ php -v
PHP 8.2.9 (cli) (built: Aug 1 2023 12:35:15) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.2.9, Copyright (c) Zend Technologies
Subject
I have a Symfony 6.3.3 application with entities. Some of them use Translatable without any problem. I tried to add Translatable on an existing entity called "Country". This Country entity didn't use Translatable when i first created it. So i've added Translatable interface to my entity, add use stetements for using Gedmo, mark a field as Translatable via attributes, add the Gedmo/Locale to a new attribute and the setTranslatableLocale function like in my pther translatable entities which works well.
When i used in a service some code to persist some Country entities with their translations in my PostgreSQL 14 database, i've got the following error :
An exception occurred in the driver: SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "abstract_translation_id_seq" does not exist
CONTEXT: unnamed portal parameter $1 = '...'
None of my entites defined some custom TranslationEntities. I've tried to define one without any success. I've also tried to empty doctrine cache with the following commands still without success :
I've got the same error with Gedmo + Doctrine 2.16-2.17 + Postrges.
An exception occurred in the driver: SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "abstract_translation_id_seq" does not exist\n
CONTEXT: unnamed portal parameter $1 = '...'
Environment
Package
show
Doctrine packages
show
PHP version
Subject
I have a Symfony 6.3.3 application with entities. Some of them use Translatable without any problem. I tried to add Translatable on an existing entity called "Country". This Country entity didn't use Translatable when i first created it. So i've added Translatable interface to my entity, add use stetements for using Gedmo, mark a field as Translatable via attributes, add the Gedmo/Locale to a new attribute and the setTranslatableLocale function like in my pther translatable entities which works well.
When i used in a service some code to persist some Country entities with their translations in my PostgreSQL 14 database, i've got the following error :
None of my entites defined some custom TranslationEntities. I've tried to define one without any success. I've also tried to empty doctrine cache with the following commands still without success :
I've also tried to force schema update, but still no change.
Minimal repository with the bug
Steps to reproduce
Expected results
Inserting translations into the Translatable default table or in the table defined for the targetted entity.
Actual results
Extract of code which produce the error :
Country entity code :
CountryTranslation entity code :
Full error log :
The text was updated successfully, but these errors were encountered: