[Alba-desarrollo] SVN Alba r5043 - in prosistem/alba/trunk/alba:
config data/sql lib/model/map lib/model/om
commits en pressenter.com.ar
commits en pressenter.com.ar
Lun Sep 3 19:33:22 CEST 2007
Author: josx
Date: 2007-09-03 14:33:21 -0300 (Mon, 03 Sep 2007)
New Revision: 5043
Modified:
prosistem/alba/trunk/alba/config/schema.yml
prosistem/alba/trunk/alba/data/sql/lib.model.schema.sql
prosistem/alba/trunk/alba/lib/model/map/TipoivaMapBuilder.php
prosistem/alba/trunk/alba/lib/model/om/BaseTipoiva.php
prosistem/alba/trunk/alba/lib/model/om/BaseTipoivaPeer.php
Log:
Cambio para que tabla tipoiva soporte autoincrement en su id. ( por alguna razon no estaba puesto)
Modified: prosistem/alba/trunk/alba/config/schema.yml
===================================================================
--- prosistem/alba/trunk/alba/config/schema.yml 2007-08-30 16:44:48 UTC (rev 5042)
+++ prosistem/alba/trunk/alba/config/schema.yml 2007-09-03 17:33:21 UTC (rev 5043)
@@ -495,7 +495,7 @@
id:
type: INTEGER
required: true
- autoIncrement: false
+ autoIncrement: true
primaryKey: true
nombre:
type: VARCHAR
Modified: prosistem/alba/trunk/alba/data/sql/lib.model.schema.sql
===================================================================
--- prosistem/alba/trunk/alba/data/sql/lib.model.schema.sql 2007-08-30 16:44:48 UTC (rev 5042)
+++ prosistem/alba/trunk/alba/data/sql/lib.model.schema.sql 2007-09-03 17:33:21 UTC (rev 5043)
@@ -410,7 +410,7 @@
CREATE TABLE `tipoiva`
(
- `id` INTEGER NOT NULL,
+ `id` INTEGER NOT NULL AUTO_INCREMENT,
`nombre` VARCHAR(128) NOT NULL,
`descripcion` VARCHAR(255),
`orden` INTEGER default 0,
Modified: prosistem/alba/trunk/alba/lib/model/map/TipoivaMapBuilder.php
===================================================================
--- prosistem/alba/trunk/alba/lib/model/map/TipoivaMapBuilder.php 2007-08-30 16:44:48 UTC (rev 5042)
+++ prosistem/alba/trunk/alba/lib/model/map/TipoivaMapBuilder.php 2007-09-03 17:33:21 UTC (rev 5043)
@@ -30,7 +30,7 @@
$tMap = $this->dbMap->addTable('tipoiva');
$tMap->setPhpName('Tipoiva');
- $tMap->setUseIdGenerator(false);
+ $tMap->setUseIdGenerator(true);
$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);
Modified: prosistem/alba/trunk/alba/lib/model/om/BaseTipoiva.php
===================================================================
--- prosistem/alba/trunk/alba/lib/model/om/BaseTipoiva.php 2007-08-30 16:44:48 UTC (rev 5042)
+++ prosistem/alba/trunk/alba/lib/model/om/BaseTipoiva.php 2007-09-03 17:33:21 UTC (rev 5043)
@@ -203,6 +203,7 @@
if ($this->isNew()) {
$pk = TipoivaPeer::doInsert($this, $con);
$affectedRows += 1;
+ $this->setId($pk);
$this->setNew(false);
} else {
$affectedRows += TipoivaPeer::doUpdate($this, $con);
Modified: prosistem/alba/trunk/alba/lib/model/om/BaseTipoivaPeer.php
===================================================================
--- prosistem/alba/trunk/alba/lib/model/om/BaseTipoivaPeer.php 2007-08-30 16:44:48 UTC (rev 5042)
+++ prosistem/alba/trunk/alba/lib/model/om/BaseTipoivaPeer.php 2007-09-03 17:33:21 UTC (rev 5043)
@@ -210,6 +210,7 @@
$criteria = clone $values; } else {
$criteria = $values->buildCriteria(); }
+ $criteria->remove(TipoivaPeer::ID);
$criteria->setDbName(self::DATABASE_NAME);
Más información sobre la lista de distribución Alba-desarrollo