Author: ts Date: Mon Dec 10 12:40:58 2007 New Revision: 6952 Log: - Fixed issue #12214: persistent object documentation error. (Simple mapping example now uses ezcPersistentNativeGenerator and gives a hint on ezcPersistentSequenceGenerator.)
Modified: trunk/PersistentObject/ChangeLog trunk/PersistentObject/docs/tutorial.txt Modified: trunk/PersistentObject/ChangeLog ============================================================================== --- trunk/PersistentObject/ChangeLog [iso-8859-1] (original) +++ trunk/PersistentObject/ChangeLog [iso-8859-1] Mon Dec 10 12:40:58 2007 @@ -1,3 +1,10 @@ +1.3.3 - [RELEASEDATE] +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +- Fixed issue #12214: persistent object documentation error. (Simple mapping + example now uses ezcPersistentNativeGenerator and gives a hint on + ezcPersistentSequenceGenerator.) + 1.3.2 - Wednesday 28 November 2007 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Modified: trunk/PersistentObject/docs/tutorial.txt ============================================================================== --- trunk/PersistentObject/docs/tutorial.txt [iso-8859-1] (original) +++ trunk/PersistentObject/docs/tutorial.txt [iso-8859-1] Mon Dec 10 12:40:58 2007 @@ -119,7 +119,7 @@ $def->idProperty = new ezcPersistentObjectIdProperty; $def->idProperty->columnName = 'id'; $def->idProperty->propertyName = 'id'; - $def->idProperty->generator = new ezcPersistentGeneratorDefinition( 'ezcPersistentSequenceGenerator' ); + $def->idProperty->generator = new ezcPersistentGeneratorDefinition( 'ezcPersistentNativeGenerator' ); $def->properties['name'] = new ezcPersistentObjectProperty; $def->properties['name']->columnName = 'full_name'; @@ -137,8 +137,10 @@ The first block of code creates the definition object and sets the database table and the name of the class to map. The second block defines the mapping of the identifier member and the algorithm that should be used to create -identifiers for new objects. We will use ezcPersistentSequenceGenerator, -which simply retrieves the new id generated by auto_increment. +identifiers for new objects. We will use ezcPersistentNativeGenerator, which +simply retrieves the new id generated by auto_increment. If you rely on a +database backend that does not support auto_increment (e.g. Oracle), +ezcPersistentSequenceGenerator is the class to choose here. The next two code blocks define the mapping between the database columns and the class members. It is possible to use the same name in the class and the -- svn-components mailing list svn-components@lists.ez.no http://lists.ez.no/mailman/listinfo/svn-components