public function asVersionInteger()
    {
        $this->verifyHasPropertyNameForVersioning(__METHOD__);
        $this->asInt();
        $this->definition->optimisticLocking(new IntegerVersionLockingStrategy($this->propertyName, $this->name));
    }