Skip to content

Commit

Permalink
#1 Added UUID property and getter to other entity models
Browse files Browse the repository at this point in the history
  • Loading branch information
iisisrael committed Jun 16, 2020
1 parent 3ca1f61 commit b926256
Show file tree
Hide file tree
Showing 10 changed files with 110 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Entity/Assistance.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ class Assistance
*/
private $id;

/**
* @ORM\GeneratedValue(strategy="UUID")
* @ORM\Column(type="guid")
*/
private $uuid;

/**
* @ORM\Column(type="datetimetz")
*/
Expand Down Expand Up @@ -135,6 +141,11 @@ public function getId(): ?int
return $this->id;
}

public function getUuid(): ?string
{
return $this->uuid;
}

public function getEnabled(): ?\DateTimeInterface
{
return $this->enabled;
Expand Down
11 changes: 11 additions & 0 deletions src/Entity/AssistanceItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ class AssistanceItem
*/
private $id;

/**
* @ORM\GeneratedValue(strategy="UUID")
* @ORM\Column(type="guid")
*/
private $uuid;

/**
* @ORM\Column(type="bigint", nullable=true)
*/
Expand All @@ -41,6 +47,11 @@ public function getId(): ?int
return $this->id;
}

public function getUuid(): ?string
{
return $this->uuid;
}

public function getBarcode(): ?string
{
return $this->barcode;
Expand Down
11 changes: 11 additions & 0 deletions src/Entity/Household.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ class Household implements RecipientInterface
*/
private $id;

/**
* @ORM\GeneratedValue(strategy="UUID")
* @ORM\Column(type="guid")
*/
private $uuid;

/**
* @ORM\Column(type="datetimetz")
*/
Expand Down Expand Up @@ -109,6 +115,11 @@ public function getId(): ?int
return $this->id;
}

public function getUuid(): ?string
{
return $this->uuid;
}

public function getCreated(): ?\DateTimeInterface
{
return $this->created;
Expand Down
11 changes: 11 additions & 0 deletions src/Entity/PantryItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ class PantryItem
*/
private $id;

/**
* @ORM\GeneratedValue(strategy="UUID")
* @ORM\Column(type="guid")
*/
private $uuid;

/**
* @ORM\Column(type="bigint", nullable=true)
*/
Expand Down Expand Up @@ -93,6 +99,11 @@ public function getId(): ?int
return $this->id;
}

public function getUuid(): ?string
{
return $this->uuid;
}

public function getBarcode(): ?string
{
return $this->barcode;
Expand Down
11 changes: 11 additions & 0 deletions src/Entity/ServiceAssistance.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ class ServiceAssistance
*/
private $id;

/**
* @ORM\GeneratedValue(strategy="UUID")
* @ORM\Column(type="guid")
*/
private $uuid;

/**
* @ORM\Column(type="datetimetz")
*/
Expand Down Expand Up @@ -76,6 +82,11 @@ public function getId(): ?int
return $this->id;
}

public function getUuid(): ?string
{
return $this->uuid;
}

public function getCreated(): ?\DateTimeInterface
{
return $this->created;
Expand Down
11 changes: 11 additions & 0 deletions src/Entity/ServiceAssistanceItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ class ServiceAssistanceItem
*/
private $id;

/**
* @ORM\GeneratedValue(strategy="UUID")
* @ORM\Column(type="guid")
*/
private $uuid;

/**
* @ORM\Column(type="integer")
*/
Expand Down Expand Up @@ -43,6 +49,11 @@ public function getId(): ?int
return $this->id;
}

public function getUuid(): ?string
{
return $this->uuid;
}

public function getDollarsInCents(): ?int
{
return $this->dollarsInCents;
Expand Down
11 changes: 11 additions & 0 deletions src/Entity/ServiceAssistanceStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ class ServiceAssistanceStatus
*/
private $id;

/**
* @ORM\GeneratedValue(strategy="UUID")
* @ORM\Column(type="guid")
*/
private $uuid;

/**
* @ORM\Column(type="datetimetz")
*/
Expand Down Expand Up @@ -82,6 +88,11 @@ public function getId(): ?int
return $this->id;
}

public function getUuid(): ?string
{
return $this->uuid;
}

public function getCreated(): ?\DateTimeInterface
{
return $this->created;
Expand Down
11 changes: 11 additions & 0 deletions src/Entity/ServicePantry.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ class ServicePantry
*/
private $id;

/**
* @ORM\GeneratedValue(strategy="UUID")
* @ORM\Column(type="guid")
*/
private $uuid;

/**
* @ORM\Column(type="datetimetz")
*/
Expand Down Expand Up @@ -86,6 +92,11 @@ public function getId(): ?int
return $this->id;
}

public function getUuid(): ?string
{
return $this->uuid;
}

public function getCreated(): ?\DateTimeInterface
{
return $this->created;
Expand Down
11 changes: 11 additions & 0 deletions src/Entity/ServicePantryItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ class ServicePantryItem
*/
private $id;

/**
* @ORM\GeneratedValue(strategy="UUID")
* @ORM\Column(type="guid")
*/
private $uuid;

/**
* @ORM\Column(type="integer")
*/
Expand All @@ -38,6 +44,11 @@ public function getId(): ?int
return $this->id;
}

public function getUuid(): ?string
{
return $this->uuid;
}

public function getQty(): ?int
{
return $this->qty;
Expand Down
11 changes: 11 additions & 0 deletions src/Entity/ServicePantryStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ class ServicePantryStatus
*/
private $id;

/**
* @ORM\GeneratedValue(strategy="UUID")
* @ORM\Column(type="guid")
*/
private $uuid;

/**
* @ORM\Column(type="datetimetz")
*/
Expand Down Expand Up @@ -82,6 +88,11 @@ public function getId(): ?int
return $this->id;
}

public function getUuid(): ?string
{
return $this->uuid;
}

public function getCreated(): ?\DateTimeInterface
{
return $this->created;
Expand Down

0 comments on commit b926256

Please sign in to comment.