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;
    }