public function addLaneset($data) { // setting defaults $processUid = $this->getProcess("object")->getProUid(); $data['LNS_UID'] = array_key_exists('LNS_UID', $data) ? $data['LNS_UID'] : Common::generateUID(); $data["PRO_UID"] = $processUid; try { self::log("Add Laneset with data: ", $data); $laneset = new Laneset(); $laneset->fromArray($data, BasePeer::TYPE_FIELDNAME); $laneset->setPrjUid($this->getUid()); $laneset->setProUid($this->getProcess("object")->getProUid()); $laneset->save(); self::log("Add Laneset Success!"); } catch (\Exception $e) { self::log("Exception: ", $e->getMessage(), "Trace: ", $e->getTraceAsString()); throw $e; } return $laneset->getLnsUid(); }