Doctrine\ODM\MongoDB\Mapping\ClassMetadataInfo::setVersionField PHP Method

setVersionField() public method

Sets the name of the field that is to be used for versioning if this class is versioned for optimistic locking.
public setVersionField ( string $versionField )
$versionField string
    public function setVersionField($versionField)
    {
        $this->versionField = $versionField;
    }
ClassMetadataInfo