public function add_address($id, Customer $obj) { $data = $obj->address(); $sqlEx = $this->sql->update(); $sqlEx->table($this->table); $sqlEx->set($data); $sqlEx->where(array('id' => $id)); $pst = $this->sql->prepareStatementForSqlObject($sqlEx); $result = $pst->execute(); if ($result != null) { return TRUE; } else { return FALSE; } }