class Version (View source)

Class to store and retrieve the version of Doctrine.

Constants

VERSION

Current Doctrine Version.

Methods

static int
compare(string $version)

Compares a Doctrine version with the current one.

Details

static int compare(string $version)

Compares a Doctrine version with the current one.

Parameters

string $version The Doctrine version to compare to.

Return Value

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