public function asVersionInteger()
    {
        $this->verifyHasPropertyNameForVersioning(__METHOD__);
        $this->asInt();
        $this->definition->optimisticLocking(new IntegerVersionLockingStrategy($this->propertyName, $this->name));
    }
public function asVersionInteger()
    {
        $this->verifyHasPropertyNameForVersioning(__METHOD__);
        $this->asInt();
        $this->definition->optimisticLocking(new IntegerVersionLockingStrategy($this->propertyName, $this->name));
    }
public function asVersionInteger ( ) { $ this -> verifyHasPropertyNameForVersioning ( __METHOD__ ) ; $ this -> asInt ( ) ; $ this -> definition -> optimisticLocking ( new IntegerVersionLockingStrategy ( $ this -> propertyName , $ this -> name ) ) ; }
Defines the column as an INTEGER type that will act as a versioning
column for optimistic locking. This column will be incremented every
time the entity is saved. If the value in the database is out of sync
with the value being persisted an exception will be thrown.

@see EntityOutOfSyncException

@return void
Defines the column as an INTEGER type that will act as a versioning column for optimistic locking . This column will be incremented every time the entity is saved . If the value in the database is out of sync with the value being persisted an exception will be thrown .