Skip to content

Commit c164ae4

Browse files
committed
docs: generation strategies differences between DBAL 3 and 4
1 parent 21e9fcb commit c164ae4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/en/reference/basic-mapping.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,14 +389,16 @@ Here is the list of possible generation strategies:
389389

390390
- ``AUTO`` (default): Tells Doctrine to pick the strategy that is
391391
preferred by the used database platform. The preferred strategies
392-
are ``IDENTITY`` for MySQL, SQLite, MsSQL and SQL Anywhere and, for
393-
historical reasons, ``SEQUENCE`` for Oracle and PostgreSQL. This
394-
strategy provides full portability.
392+
are ``IDENTITY`` for MySQL, SQLite, MsSQL, SQL Anywhere and
393+
PostgreSQL (on DBAL 4) and, for historical reasons, ``SEQUENCE``
394+
for Oracle and PostgreSQL (on DBAL 3). This strategy provides
395+
full portability.
395396
- ``IDENTITY``: Tells Doctrine to use special identity columns in
396397
the database that generate a value on insertion of a row. This
397398
strategy does currently not provide full portability and is
398399
supported by the following platforms: MySQL/SQLite/SQL Anywhere
399-
(``AUTO_INCREMENT``), MSSQL (``IDENTITY``) and PostgreSQL (``SERIAL``).
400+
(``AUTO_INCREMENT``), MSSQL (``IDENTITY``) and PostgreSQL (``SERIAL``
401+
on DBAL 3, ``GENERATED BY DEFAULT AS IDENTITY`` on DBAL 4).
400402
- ``SEQUENCE``: Tells Doctrine to use a database sequence for ID
401403
generation. This strategy does currently not provide full
402404
portability. Sequences are supported by Oracle, PostgreSql and

0 commit comments

Comments
 (0)