Merged in bugfix/HOR-2698 (pull request #5519)
HOR-2698 Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
4c07012e19
@@ -63,7 +63,7 @@ class AppSequenceMapBuilder
|
||||
$tMap = $this->dbMap->addTable('APP_SEQUENCE');
|
||||
$tMap->setPhpName('AppSequence');
|
||||
|
||||
$tMap->setUseIdGenerator(true);
|
||||
$tMap->setUseIdGenerator(false);
|
||||
|
||||
$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);
|
||||
|
||||
|
||||
@@ -198,8 +198,6 @@ abstract class BaseAppSequence extends BaseObject implements Persistent
|
||||
// should always be true here (even though technically
|
||||
// BasePeer::doInsert() can insert multiple rows).
|
||||
|
||||
$this->setId($pk); //[IMV] update autoincrement primary key
|
||||
|
||||
$this->setNew(false);
|
||||
} else {
|
||||
$affectedRows += AppSequencePeer::doUpdate($this, $con);
|
||||
|
||||
@@ -338,8 +338,6 @@ abstract class BaseAppSequencePeer
|
||||
$criteria = $values->buildCriteria(); // build Criteria from AppSequence object
|
||||
}
|
||||
|
||||
//$criteria->remove(AppSequencePeer::ID); // remove pkey col since this table uses auto-increment
|
||||
|
||||
|
||||
// Set the correct dbName
|
||||
$criteria->setDbName(self::DATABASE_NAME);
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
</unique>
|
||||
</table>
|
||||
<table name="APP_SEQUENCE" idMethod="native">
|
||||
<column name="ID" type="INTEGER" required="true" primaryKey="true" autoIncrement="true" />
|
||||
<column name="ID" type="INTEGER" required="true" primaryKey="true"/>
|
||||
</table>
|
||||
<table name="APP_DELEGATION" idMethod="native">
|
||||
<vendor type="mysql">
|
||||
|
||||
@@ -51,7 +51,7 @@ DROP TABLE IF EXISTS `APP_SEQUENCE`;
|
||||
|
||||
CREATE TABLE `APP_SEQUENCE`
|
||||
(
|
||||
`ID` INTEGER NOT NULL AUTO_INCREMENT,
|
||||
`ID` INTEGER NOT NULL,
|
||||
PRIMARY KEY (`ID`)
|
||||
)ENGINE=InnoDB ;
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user