mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-27 18:13:48 +00:00
change logic of dashboard item to return user config, reinstate news items api
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user