Skip to content

Commit

Permalink
add delete function. close #10
Browse files Browse the repository at this point in the history
  • Loading branch information
janz93 committed Oct 13, 2015
1 parent 441fcd3 commit c56da27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/model/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ public function select() {
return $this->getAdapter()->select();
}

public function delete(Query $where) {
return $this->getAdapter()->delete($this, $where);
}

public function update($data, $where = null) {
return $this->getAdapter()->update($this, $data, $where);
}
Expand Down

0 comments on commit c56da27

Please sign in to comment.