Skip to content

feat(doctrine): upgrade to Doctrine ORM 3.6, DBAL 4.4, Persistence 4.2#433

Open
ambroisemaupate wants to merge 5 commits into
developfrom
feat/upgrade-orm-3
Open

feat(doctrine): upgrade to Doctrine ORM 3.6, DBAL 4.4, Persistence 4.2#433
ambroisemaupate wants to merge 5 commits into
developfrom
feat/upgrade-orm-3

Conversation

@ambroisemaupate

Copy link
Copy Markdown
Member

Fixes #394

DBAL 4 removed the built-in `array` type, but gedmo/doctrine-extensions
`AbstractLogEntry` still references it. Register a replacement type that
extends JsonType (writes JSON, reads both JSON and legacy PHP-serialized data).
- Bump doctrine/orm to ^3.6, doctrine/dbal to ^4.4, doctrine/persistence to ^4.2
- Bump doctrine-bundle, doctrine-fixtures-bundle, scienta/doctrine-json-functions
- Replace $_em with getEntityManager() in all repositories
- Remove cascade: ['merge'] and cascade: ['all'] from entity mappings
- Replace ClassMetadataInfo with ClassMetadata
- Remove EntityManager::detach() calls
- Remove JoinTable from inverse ManyToMany sides
- Replace setParameters(array) with individual setParameter() calls
- Replace setFirstResult(null) with setFirstResult(0)
- Remove legacy Doctrine Cache API usage
- Remove @throws ORMException and OptimisticLockException annotations
- new migration to convert user_log_entries.data column from serialized PHP array to pure JSON
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade Roadiz to Doctrine ORM 3.x

2 participants