mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-27 18:13:48 +00:00
create dashboard item entity
This commit is contained in:
@@ -58,13 +58,13 @@ class NewsItem implements TrackCreationInterface, TrackUpdateInterface
|
||||
private string $content = '';
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string")
|
||||
* @ORM\OneToOne (targetEntity="DashboardItem", inversedBy="newsItem")
|
||||
*
|
||||
* @groups({"write", "read"})
|
||||
*
|
||||
* @Assert\NotNull
|
||||
*/
|
||||
private string $type = 'news';
|
||||
private ?DashboardItem $dashboardItem = null;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="date_immutable", nullable=false)
|
||||
|
Reference in New Issue
Block a user