/** * Create this row in the database * @return \pq\Gateway\Row */ function create() { $this->table->notify($this, "create"); $rowset = $this->table->create($this->changes()); if (!count($rowset)) { throw new \UnexpectedValueException("No row created"); } $this->data = $rowset->current()->data; $this->cell = array(); return $this; }