create dashboard item entity

This commit is contained in:
2023-11-08 12:59:01 +01:00
parent b5f7f578da
commit f4c08ee0d7
4 changed files with 97 additions and 5 deletions

View File

@@ -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)