change logic of dashboard item to return user config, reinstate news items api

This commit is contained in:
2023-11-08 15:40:58 +01:00
parent 6cd6cb1000
commit efdc84930b
10 changed files with 210 additions and 183 deletions

View File

@@ -57,15 +57,6 @@ class NewsItem implements TrackCreationInterface, TrackUpdateInterface
*/
private string $content = '';
/**
* @ORM\OneToOne (targetEntity="DashboardItem", inversedBy="newsItem")
*
* @groups({"write", "read"})
*
* @Assert\NotNull
*/
private ?DashboardItem $dashboardItem = null;
/**
* @ORM\Column(type="date_immutable", nullable=false)
*/
@@ -193,15 +184,4 @@ class NewsItem implements TrackCreationInterface, TrackUpdateInterface
return $this->id;
}
public function getType(): string
{
return $this->type;
}
public function setType(string $type): self
{
$this->type = $type;
return $this;
}
}