コード例 #1
0
ファイル: Resource.php プロジェクト: ascertain/NGshop
 /**
  * Get the data for the object from database for the given name
  *
  * @param string $name
  */
 public function save()
 {
     if ($this->model->getId()) {
         return $this->model->update();
     }
     return $this->create();
 }