Skip to content

Commit 2b90aa3

Browse files
committed
Check if the code is executed or not
1 parent f717029 commit 2b90aa3

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
@@ -9,6 +9,7 @@
99
use Doctrine\ORM\EntityManager;
1010
use Doctrine\ORM\Exception\NotSupported;
1111

12+
use Exception;
1213
use function method_exists;
1314

1415
/**
@@ -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)