I have a problem in my Symfony 6.4 when I upgrade Doctrine/orm from 2.2 to 3.0. The error says:
DoctrineORMMappingDefaultQuoteStrategy::getColumnName(): Return value must be of type string, null returned
I know that is something about “object API of FieldMapping”, because my fieldMapping is an array as the 2.2 version, but no an object as supuse to be in 3.0 version.
My doctrine config is:
doctrine:
dbal:
url: '%env(resolve:DATABASE_URL)%'
server_version: '8.0.36'
profiling_collect_backtrace: '%kernel.debug%'
use_savepoints: true
types:
map_config: 'GameMapInfrastructurePersistenceDoctrineDBALTypesMapConfigJsonType'
group_config: 'GameMapInfrastructurePersistenceDoctrineDBALTypesGroupConfigJsonType'
poi_media_type: 'GameMapInfrastructurePersistenceDoctrineDBALTypesPoiMediaTypeStringType'
datetime_immutable_utc: 'GameMapInfrastructurePersistenceDoctrineDBALTypesUtcDateTimeType'
orm:
auto_generate_proxy_classes: true
enable_lazy_ghost_objects: true
report_fields_where_declared: true
validate_xml_mapping: true
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
auto_mapping: true
mappings:
GameMap:
type: attribute
is_bundle: false
dir: '%kernel.project_dir%/src/Domain/Entity'
prefix: 'GameMapDomainEntity'
alias: GameMap
controller_resolver:
auto_mapping: true
filters:
deleted:
class: 'GameMapInfrastructurePersistenceDoctrineFilterDeletedFilter'
enabled: true
Thanks a lot!!