From bc0f853b52e8314e7858215cd3cc9cdfa074c155 Mon Sep 17 00:00:00 2001 From: "Roman S. Borschel" Date: Thu, 6 May 2010 13:08:36 +0200 Subject: [PATCH] Clarified docs on identifier generation strategies. --- manual/en/basic-mapping.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manual/en/basic-mapping.txt b/manual/en/basic-mapping.txt index 427473d81..632d4ae3f 100644 --- a/manual/en/basic-mapping.txt +++ b/manual/en/basic-mapping.txt @@ -220,13 +220,13 @@ Here is the list of possible generation strategies: * `AUTO` (default): Tells Doctrine to pick the strategy that is preferred by the used database platform. The preferred strategies are IDENTITY for MySQL, SQLite and MsSQL and SEQUENCE for Oracle and PostgreSQL. This strategy provides full portability. -* `NONE`: Tells Doctrine that the identifiers are assigned (and thus generated) by your code. - The assignment must take place before a new entity is passed to `EntityManager#persist`. - NONE is the same as leaving off the @GeneratedValue entirely. * `SEQUENCE`: Tells Doctrine to use a database sequence for ID generation. This strategy does currently not provide full portability. Sequences are supported by Oracle and PostgreSql. * `IDENTITY`: Tells Doctrine to use special identity columns in the database that generate a value on insertion of a row. This strategy does currently not provide full portability and is supported by the following platforms: MySQL/SQLite (AUTO_INCREMENT), MSSQL (IDENTITY) and PostgreSQL (SERIAL). * `TABLE`: Tells Doctrine to use a separate table for ID generation. This strategy provides full portability. ***This strategy is not yet implemented!*** +* `NONE`: Tells Doctrine that the identifiers are assigned (and thus generated) by your code. + The assignment must take place before a new entity is passed to `EntityManager#persist`. + NONE is the same as leaving off the @GeneratedValue entirely. ++++ Sequence Generator