'news_id', 'title' => 'news_title', 'description' => 'news_description', 'text' => 'news_text' ])] */ /* #[MappedSuperclass] */ /* #[EntityListeners(LastModListener::class)] */ /* #[OneToOne(Article::class)] */ /* #[ManyToMany('articles', Article::class)] */ /* #[OneToMany('assignement.assignementGroup', Member::class)]*/ /* #[ManyToOne(targetEntity: BlogArticle::class, cascade: null, cascadeType: CascadeType::ALL, fetch: FetchType::EAGER)] */ class News extends ObjectAdapter implements \JsonSerializable { public int $id; /* #[OrderBy(array('name' => 'ASC'))] #[Embedded(Address::class)] #[AttributeOverrides(['forename' => 'bill_forename', 'surname' => 'bill_surname'])] #[Column('firstname')] */ /* #[ManagedFile(FileManager::TYPE_PUBLIC)] */ /* #[AssociationOverrides(array( 'assignementGroup' => new JoinColumn('group_id')))] */ /* #[JoinColumn('article_id')] */ public string $title; public string $description; public string $text; public function jsonSerialize(): mixed { return ['title' => $this->title, 'description' => $this->description, 'text' => $this->text ]; } }