Skip to content

Commit 86b71d4

Browse files
committed
Check if the code is executed or not
1 parent f717029 commit 86b71d4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/Doctrine/ORM/Id/UuidGenerator.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Doctrine\Deprecations\Deprecation;
99
use Doctrine\ORM\EntityManager;
1010
use Doctrine\ORM\Exception\NotSupported;
11+
use Exception;
1112

1213
use function method_exists;
1314

@@ -39,9 +40,6 @@ public function __construct()
3940
*/
4041
public function generate(EntityManager $em, $entity)
4142
{
42-
$conn = $em->getConnection();
43-
$sql = 'SELECT ' . $conn->getDatabasePlatform()->getGuidExpression();
44-
45-
return $conn->executeQuery($sql)->fetchOne();
43+
throw new Exception();
4644
}
4745
}

0 commit comments

Comments
 (0)