mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-26 06:29:24 +02:00
Merge pull request #10709 from creative-commoners/pulls/4/deprecated-args
ENH Updated deprecation warning message
This commit is contained in:
commit
277e97a84f
|
@ -367,14 +367,16 @@ class MySQLDatabase extends Database implements TransactionManager
|
||||||
|
|
||||||
public function transactionEnd($chain = false)
|
public function transactionEnd($chain = false)
|
||||||
{
|
{
|
||||||
$result = $this->getTransactionManager()->transactionEnd();
|
|
||||||
|
|
||||||
if ($chain) {
|
if ($chain) {
|
||||||
Deprecation::notice('4.4', '$chain argument is deprecated');
|
Deprecation::notice(
|
||||||
|
'4.4.0',
|
||||||
|
'$chain argument in ' . __METHOD__ . ' is deprecated',
|
||||||
|
Deprecation::SCOPE_GLOBAL
|
||||||
|
);
|
||||||
return $this->getTransactionManager()->transactionStart();
|
return $this->getTransactionManager()->transactionStart();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result;
|
return $this->getTransactionManager()->transactionEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user