Blast\Orm\Entity\Provider::isNew PHP Méthode

isNew() public méthode

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