Skip to content

Commit

Permalink
Upgraded Doctrine to ORM 3 and DBAL 4
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Wright <[email protected]>
  • Loading branch information
betterthanclay committed Apr 26, 2024
1 parent 2af3d06 commit 35c8729
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* Upgraded Doctrine to ORM 3 and DBAL 4
* Updated dependency list

## v0.1.3 (2024-04-24)
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"decodelabs/stash": "^0.5.0",
"decodelabs/veneer": "^0.10.24",

"doctrine/orm": "^2.17",
"doctrine/dbal": "^3.7",
"doctrine/orm": "^3",
"doctrine/dbal": "^4",
"doctrine/migrations": "^3.7"
},
"require-dev": {
Expand Down Expand Up @@ -51,7 +51,7 @@
},
"extra": {
"branch-alias": {
"dev-develop": "0.1.x-dev"
"dev-develop": "0.2.x-dev"
}
}
}
11 changes: 4 additions & 7 deletions src/Indoctrination/Generator/Uuid.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@
namespace DecodeLabs\Indoctrination\Generator;

use DecodeLabs\Guidance;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Id\AbstractIdGenerator;

class Uuid extends AbstractIdGenerator
{
/**
* @param object $entity
*/
public function generate(
EntityManager $entityManager,
$entity
public function generateId(
EntityManagerInterface $entityManager,
?object $entity
): string {
return (string)Guidance::createV7();
}
Expand Down

0 comments on commit 35c8729

Please sign in to comment.