ORM::is_new PHP Method

is_new() public method

Check whether the model was the result of a call to create() or not
public is_new ( ) : boolean
return boolean
    public function is_new()
    {
        return $this->_is_new;
    }

Usage Example

Example #1
0
 /**
  * Check whether the model was the result of a call to create() or not
  *
  * @return bool
  */
 public function is_new()
 {
     return $this->orm->is_new();
 }
ORM