Blast\Orm\Entity\Provider::isNew PHP Метод

isNew() публичный Метод

Check if entity is new or not
public isNew ( ) : boolean
Результат boolean
    public function isNew()
    {
        $data = $this->extract();
        return isset($data[$this->getDefinition()->getPrimaryKeyName()]) ? empty($data[$this->getDefinition()->getPrimaryKeyName()]) : true;
    }