Rename "save" to "createOrUpdate" for the dashlets

This commit is contained in:
Julio Cesar Laura
2011-10-31 17:13:05 -04:00
parent 3f91088160
commit c7c56b4e60
2 changed files with 2 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ class PMDashlet extends DashletInstance implements DashletInterface {
public function saveDashletInstance($data) { public function saveDashletInstance($data) {
try { try {
$this->dashletObject->save($data); $this->dashletObject->createOrUpdate($data);
} }
catch (Exception $error) { catch (Exception $error) {
throw $error; throw $error;

View File

@@ -30,7 +30,7 @@ class DashletInstance extends BaseDashletInstance {
} }
} }
public function save($data) { public function createOrUpdate($data) {
$connection = Propel::getConnection(DashletInstancePeer::DATABASE_NAME); $connection = Propel::getConnection(DashletInstancePeer::DATABASE_NAME);
try { try {
if (!isset($data['DAS_INS_UID'])) { if (!isset($data['DAS_INS_UID'])) {