Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getProduto($id)
- {
- $id = (int) $id;
- $rowset = $this->tableGateway->select(array('id' => $id));
- $row = $rowset->current();
- if (!$row) {
- throw new \Exception("O registro de ID $id não foi encontrado");
- }
- return $row;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement