Skip to content

Commit

Permalink
Merge pull request #1644 from ConductionNL/feature/unrequire-user-ref…
Browse files Browse the repository at this point in the history
…erence

drop requirement of adding reference and version to user
  • Loading branch information
WilcoLouwerse committed Apr 25, 2024
2 parents 0afc835 + 18a3fff commit 1462da3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions api/src/Entity/User.php
Expand Up @@ -52,7 +52,7 @@
* "reference": "exact"
* })
*
* @UniqueEntity("reference")
* @UniqueEntity("email")
*
* @ORM\Table(name="`user`")
*/
Expand Down Expand Up @@ -106,17 +106,13 @@ class User implements PasswordAuthenticatedUserInterface
/**
* @Groups({"read", "write"})
*
* @Assert\NotNull
*
* @ORM\Column(type="string", length=255, nullable=true, options={"default": null})
*/
private ?string $reference = null;

/**
* @Groups({"read", "write"})
*
* @Assert\NotNull
*
* @ORM\Column(type="string", length=255, options={"default": "0.0.0"})
*/
private string $version = '0.0.0';
Expand Down

0 comments on commit 1462da3

Please sign in to comment.