mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-27 20:11:34 +03:00
Updated to doctrine 2.11
This commit is contained in:
parent
b438802e71
commit
976b07cd61
2 changed files with 4 additions and 1 deletions
|
@ -18,7 +18,7 @@
|
||||||
"akrabat/ip-address-middleware": "^2.1",
|
"akrabat/ip-address-middleware": "^2.1",
|
||||||
"cakephp/chronos": "^2.3",
|
"cakephp/chronos": "^2.3",
|
||||||
"doctrine/migrations": "^3.3",
|
"doctrine/migrations": "^3.3",
|
||||||
"doctrine/orm": "^2.10",
|
"doctrine/orm": "^2.11",
|
||||||
"endroid/qr-code": "^4.4",
|
"endroid/qr-code": "^4.4",
|
||||||
"geoip2/geoip2": "^2.12",
|
"geoip2/geoip2": "^2.12",
|
||||||
"guzzlehttp/guzzle": "^7.4",
|
"guzzlehttp/guzzle": "^7.4",
|
||||||
|
|
|
@ -192,6 +192,9 @@ class ShortUrlRepository extends EntitySpecificationRepository implements ShortU
|
||||||
return $this->doShortCodeIsInUse($identifier, $spec, LockMode::PESSIMISTIC_WRITE);
|
return $this->doShortCodeIsInUse($identifier, $spec, LockMode::PESSIMISTIC_WRITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param LockMode::PESSIMISTIC_WRITE|null $lockMode
|
||||||
|
*/
|
||||||
private function doShortCodeIsInUse(ShortUrlIdentifier $identifier, ?Specification $spec, ?int $lockMode): bool
|
private function doShortCodeIsInUse(ShortUrlIdentifier $identifier, ?Specification $spec, ?int $lockMode): bool
|
||||||
{
|
{
|
||||||
$qb = $this->createFindOneQueryBuilder($identifier, $spec)->select('s.id');
|
$qb = $this->createFindOneQueryBuilder($identifier, $spec)->select('s.id');
|
||||||
|
|
Loading…
Add table
Reference in a new issue