Blast\Orm\Entity\Provider::isNew PHP Method

isNew() public method

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