add ordering to social issue and social action

This commit is contained in:
2021-12-13 22:48:54 +01:00
parent 3d3cc9aeb4
commit f2fd30b690
4 changed files with 77 additions and 4 deletions

View File

@@ -60,12 +60,28 @@ class SocialIssue
*/
private $title = [];
/**
* @ORM\Column(type="float", name="ordering", options={"default": 0.0})
*/
private float $ordering = 0.0;
public function __construct()
{
$this->children = new ArrayCollection();
$this->socialActions = new ArrayCollection();
}
public function getOrdering(): float
{
return $this->ordering;
}
public function setOrdering(float $ordering): SocialIssue
{
$this->ordering = $ordering;
return $this;
}
public function addChild(self $child): self
{
if (!$this->children->contains($child)) {