예제 #1
0
파일: Row.php 프로젝트: AttilaJenei/Seek-R
 /**
  * Save
  *
  * @throws Exception
  * @return array
  */
 public final function save()
 {
     if (empty($this->_table)) {
         throw new Exception('Table is not specified');
     }
     // Update
     if ($this->_stored) {
         $this->_table->updateRow($this);
     } else {
         $this->_table->insertRow($this);
     }
     return $this->getPrimaryKey();
 }