ezsystems/ezp-next — pull request #43 by pspanja (2012-04-13 12:04:53+00:00)
Title: Fixed ContentHandler::createDraft()

Added optional $contentTypeId argument to ContentTypeHandler::create() to be used when creating type draft from existing type.
Changed SQLite schema - removed autoincrement and added composite key to ezcontentclass table.
Autoincrement is now emulated by overridden SQLite EzcDbHandler methods getAutoIncrementValue(), lastInsertId() and getSequenceName() methods.

Also removed SQLite trigger and applied same logic as above for ezcontentobject_attribute table, as trigger and lastInsertId() worked well in simple persistence tests but were messed up in service tests.