Se necesita una fecha del dynaform o versióara recargar los formularios desde mobile
This commit is contained in:
dheeyi
2015-07-13 17:10:35 -04:00
parent 39fdf60e3b
commit b8ecff73ef
5 changed files with 5 additions and 6 deletions

View File

@@ -79,7 +79,7 @@ class DynaformMapBuilder
$tMap->addColumn('DYN_VERSION', 'DynVersion', 'int', CreoleTypes::INTEGER, true, null);
$tMap->addColumn('DYN_UPDATE_DATE', 'DynUpdateDate', 'int', CreoleTypes::DATE, false, null);
$tMap->addColumn('DYN_UPDATE_DATE', 'DynUpdateDate', 'int', CreoleTypes::TIMESTAMP, false, null);
$tMap->addValidator('DYN_TYPE', 'validValues', 'propel.validator.ValidValuesValidator', 'xmlform|grid', 'Please select a valid dynaform type.');

View File

@@ -174,7 +174,7 @@ abstract class BaseDynaform extends BaseObject implements Persistent
* @return mixed Formatted date/time value as string or integer unix timestamp (if format is NULL).
* @throws PropelException - if unable to convert the date/time to timestamp.
*/
public function getDynUpdateDate($format = 'Y-m-d')
public function getDynUpdateDate($format = 'Y-m-d H:i:s')
{
if ($this->dyn_update_date === null || $this->dyn_update_date === '') {
@@ -412,7 +412,7 @@ abstract class BaseDynaform extends BaseObject implements Persistent
$this->dyn_version = $rs->getInt($startcol + 6);
$this->dyn_update_date = $rs->getDate($startcol + 7, null);
$this->dyn_update_date = $rs->getTimestamp($startcol + 7, null);
$this->resetModified();