Doctrine\DBAL\Version::compare
Compares a Doctrine version with the current one.
Signature
public function compare(string
$version )
Parameters
$version
— string- Doctrine version to compare.
Returns
- int
- Returns -1 if older, 0 if it is the same, 1 if version
passed as argument is newer.