Merged in bugfix/HOR-2698 (pull request #5519)

HOR-2698

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Ronald Henry Quenta Apaza
2017-03-13 15:00:20 +00:00
committed by Julio Cesar Laura Avendaño
5 changed files with 3 additions and 7 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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">

View File

@@ -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 ;
#-----------------------------------------------------------------------------