src/db/orm/meta/EntityMapping.php
public function getVersion() {
        if ($this->version === null) {
            foreach ($this->mapping['properties'] as $name => $property) {
                if (isset($property['version']) && $property['version']===true) {
                    return $this->version = new PropertyMapping($this, $property);
                }
            }
            $this->version = false;
        }
        return $this->version ?: null;
    }
public function getVersion() {
        if ($this->version === null) {
            foreach ($this->mapping['properties'] as $name => $property) {
                if (isset($property['version']) && $property['version']===true) {
                    return $this->version = new PropertyMapping($this, $property);
                }
            }
            $this->version = false;
        }
        return $this->version ?: null;
    }
public function getVersion ( ) { if ( $ this -> version === null ) { foreach ( $ this -> mapping [ 'properties' ] as $ name => $ property ) { if ( isset ( $ property [ 'version' ] ) && $ property [ 'version' ] === true ) { return $ this -> version = new PropertyMapping ( $ this , $ property ) ; } } $ this -> version = false ; } return $ this -> version ? : null ; }
Return the mapping instance of the entity's versioning property.

@return PropertyMapping|null - mapping or NULL if versioning is not configured
Return the mapping instance of the entity s versioning property .