Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Commit

Permalink
Updated queue entity, was an issue with persisting
Browse files Browse the repository at this point in the history
  • Loading branch information
brettminnie committed Dec 12, 2014
1 parent 5336aa5 commit 8964b73
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion src/Opg/Core/Model/Entity/Queue.php
Expand Up @@ -18,7 +18,35 @@
*/
class Queue implements HasIdInterface
{
use HasId;
/**
* @ORM\Column(type = "integer", options = {"unsigned": true})
* @ORM\GeneratedValue(strategy = "IDENTITY")
* @ORM\Id
* @Groups({"api-poa-list","api-task-list","api-person-get","api-warning-list"})
* @Accessor(getter="getId", setter="setId")
* @Type("integer")
* @var int $id
*/
protected $id;

/**
* @return int
*/
public function getId()
{
return $this->id;
}

/**
* @param int $id
* @return HasIdInterface
*/
public function setId( $id )
{
$this->id = (int) $id;

return $this;
}

/**
* @var string
Expand Down

0 comments on commit 8964b73

Please sign in to comment.