ORM::is_new PHP Méthode

is_new() public méthode

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

Usage Example

Exemple #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