class Version (View source)

deprecated The Version class is deprecated, please refrain from checking the version of doctrine/common.

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 Doctrine version to compare.

Return Value

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