MySQL Exception in APP when the Mobile Notifications are enabled in env.ini
This commit is contained in:
dheeyi william
2017-05-09 08:34:50 -04:00
parent 4708908bda
commit c4a19d555d
4 changed files with 5 additions and 14 deletions

View File

@@ -71,7 +71,7 @@ class NotificationDeviceMapBuilder
$tMap->addColumn('SYS_LANG', 'SysLang', 'string', CreoleTypes::VARCHAR, false, 10);
$tMap->addColumn('DEV_REG_ID', 'DevRegId', 'string', CreoleTypes::LONGVARCHAR, true, null);
$tMap->addColumn('DEV_REG_ID', 'DevRegId', 'string', CreoleTypes::VARCHAR, true, 255);
$tMap->addColumn('DEV_TYPE', 'DevType', 'string', CreoleTypes::VARCHAR, true, 50);

View File

@@ -49,7 +49,7 @@ abstract class BaseNotificationDevice extends BaseObject implements Persistent
* The value for the dev_reg_id field.
* @var string
*/
protected $dev_reg_id;
protected $dev_reg_id = '';
/**
* The value for the dev_type field.
@@ -283,7 +283,7 @@ abstract class BaseNotificationDevice extends BaseObject implements Persistent
$v = (string) $v;
}
if ($this->dev_reg_id !== $v) {
if ($this->dev_reg_id !== $v || $v === '') {
$this->dev_reg_id = $v;
$this->modifiedColumns[] = NotificationDevicePeer::DEV_REG_ID;
}