class Version (View source)

Class to store and retrieve the version of Doctrine.

Constants

VERSION

Current Doctrine Version.

Methods

static integer
compare(string $version)

Compares a Doctrine version with the current one.

Details

static integer compare(string $version)

Compares a Doctrine version with the current one.

Parameters

string $version The Doctrine version to compare to.

Return Value

integer -1 if older, 0 if it is the same, 1 if version passed as argument is newer.