Cake\ElasticSearch\Document::version PHP Méthode

version() public méthode

If this is a new document, this function returns 1
public version ( ) : integer
Résultat integer
    public function version()
    {
        if ($this->_result) {
            return $this->_result->getVersion();
        }
        return 1;
    }