Projekt

Allgemein

Profil

Aktionen

GX-Task #70616

offen

Breaking changes with Doctrine upgrade in GX 4.9

Von Moritz Bunjes vor 11 Monaten hinzugefügt.

Status:
Gemeldet
Priorität:
Normal
Zugewiesen an:
-
Kategorie:
Change
% erledigt:

0%

Betroffene Versionen:
Unbestimmt

Beschreibung

With GX 4.9 Doctrine will be upgraded. Here is a list of the relevant changes:

Doctrine\DBAL 3.6 Changes:

  • execute() and exec() methods should now be chaged to executeQuery() or executeStatement()
    • executeQuery() returns a Result class that contains all the methods below, while the executeStatment() returns the number of affected rows
    • fetchAssociative()
    • fetchAllAssociative()
    • fetchOne()
    • fetchFirstColumn()
    • fetchNumeric()
    • fetchAllNumeric()
  • FetchMode::class is deprecated
  • Events::postConnect is deprecated, a custom Middleware should be implemented instead
  • The method setParameter() must not contain any : as a parameter name, it should be for example: $qb->setParameter('foo', 2); and NOT $qb->setParameter(':foo', 2);

Nichts anzuzeigen

Aktionen

Auch abrufbar als: Atom PDF