public function Model::isNew in Little helpers 7.2
Same name and namespace in other branches
- 7 src/DB/Model.php \Drupal\little_helpers\DB\Model::isNew()
1 call to Model::isNew()
- Model::save in src/
DB/ Model.php
File
- src/
DB/ Model.php, line 21
Class
Namespace
Drupal\little_helpers\DBCode
public function isNew() {
if (!$this->new) {
return FALSE;
}
if (static::$serial) {
foreach (static::$key as $key) {
if (isset($this->{$key})) {
return FALSE;
}
}
}
return TRUE;
}