Doctrine\ORM\Mapping\DefaultQuoteStrategy::getColumnName(): возвращаемое значение должно иметь строковый тип, возвращается значение null
Я знаю, что это что-то вроде «объектного API FieldMapping», потому что мое fieldMapping представляет собой массив, как в версии 2.2, но нет объекта, который, как предполагается, может быть в версии 3.0.
А вот коммит, в котором кто-то по имени greg0ire изменил мою жизнь: https://github.com/doctrine/orm/commit/ ... 8c4aad4Моя конфигурация доктрины:
Код: Выделить всё
doctrine:
dbal:
url: '%env(resolve:DATABASE_URL)%'
server_version: '8.0.36'
profiling_collect_backtrace: '%kernel.debug%'
use_savepoints: true
types:
map_config: 'GameMap\Infrastructure\Persistence\Doctrine\DBAL\Types\MapConfigJsonType'
group_config: 'GameMap\Infrastructure\Persistence\Doctrine\DBAL\Types\GroupConfigJsonType'
poi_media_type: 'GameMap\Infrastructure\Persistence\Doctrine\DBAL\Types\PoiMediaTypeStringType'
datetime_immutable_utc: 'GameMap\Infrastructure\Persistence\Doctrine\DBAL\Types\UtcDateTimeType'
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: 'GameMap\Domain\Entity'
alias: GameMap
controller_resolver:
auto_mapping: true
filters:
deleted:
class: 'GameMap\Infrastructure\Persistence\Doctrine\Filter\DeletedFilter'
enabled: true
Подробнее здесь: https://stackoverflow.com/questions/784 ... ategygetco
Мобильная версия