returnNew() public method

Set the "new" option for a findAndUpdate command.
public returnNew ( boolean $bool = true )
$bool boolean
示例#1
0
 /**
  * @param bool $bool
  * @return self
  */
 public function returnNew($bool = true)
 {
     $this->refresh(true);
     parent::returnNew($bool);
     return $this;
 }