Documentation

Version
in package

Class to store and retrieve the version of Doctrine

Tags
deprecated
2.7

This class is being removed from the ORM and won't have any replacement

link
www.doctrine-project.org

Table of Contents

Constants

VERSION  = '2.7.1-DEV'
Current Doctrine Version

Methods

compare()  : int
Compares a Doctrine version with the current one.

Constants

VERSION

Current Doctrine Version

public mixed VERSION = '2.7.1-DEV'

Methods

compare()

Compares a Doctrine version with the current one.

public static compare(string $version) : int
Parameters
$version : string

Doctrine version to compare.

Return values
int

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


        
On this page

Search results