Guest User

Untitled

a guest
Jul 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. /**
  2. * this method takes the current $_fields property and makes new object from it
  3. * this is useful if there is already a result set and you would like to modify the object and use it with the unit of work
  4. *
  5. * @access public
  6. * @return System_Database_Base
  7. */
  8. public function makeNew(){
  9. $class = get_class($this);
  10. $obj = new $class;
  11.  
  12. return $obj->setValue($this->_fields);
  13. }
Add Comment
Please, Sign In to add comment