Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assert null for version & reference #1605

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion api/src/Entity/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,17 @@ class Action
/**
* @Groups({"read", "write"})
*
* @Assert\NotNull
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $reference;
private ?string $reference;

/**
* @Groups({"read", "write"})
*
* @Assert\NotNull
*
* @ORM\Column(type="string", length=255, options={"default": "0.0.0"})
*/
private string $version = '0.0.0';
Expand Down
4 changes: 4 additions & 0 deletions api/src/Entity/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,17 @@ class Application
/**
* @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
4 changes: 4 additions & 0 deletions api/src/Entity/CollectionEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,17 @@ class CollectionEntity
/**
* @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
4 changes: 4 additions & 0 deletions api/src/Entity/Cronjob.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,17 @@ class Cronjob
/**
* @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
4 changes: 4 additions & 0 deletions api/src/Entity/Endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,13 +324,17 @@ class Endpoint
/**
* @Groups({"read", "write"})
*
* @Assert\NotNull
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
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
4 changes: 4 additions & 0 deletions api/src/Entity/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -414,13 +414,17 @@ class Entity
/**
* @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
4 changes: 4 additions & 0 deletions api/src/Entity/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,17 @@ class Gateway
/**
* @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
4 changes: 4 additions & 0 deletions api/src/Entity/Mapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,17 @@ class Mapping
/**
* @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
4 changes: 4 additions & 0 deletions api/src/Entity/Organization.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,17 @@ class Organization
/**
* @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
4 changes: 4 additions & 0 deletions api/src/Entity/SecurityGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,17 @@ class SecurityGroup
/**
* @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
4 changes: 4 additions & 0 deletions api/src/Entity/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,17 @@ class Template
/**
* @Groups({"read", "write"})
*
* @Assert\NotNull
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
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
4 changes: 4 additions & 0 deletions api/src/Entity/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,17 @@ 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
Loading