Get author for NotConserved

This commit is contained in:
Nicolò P 2024-11-18 10:56:43 +01:00
parent 3f9b1faabf
commit 6aa1302dea
2 changed files with 18 additions and 1 deletions

View File

@ -37,6 +37,9 @@ class NotConserved implements \JsonSerializable
#[ORM\Column(type: Types::TEXT, nullable: true, name: 'descrizione_breve')]
private ?string $shortDescription = null;
#[ORM\Column(name: 'autore_scheda', length: 100, nullable: true)]
private ?string $author = null;
public function getId(): ?int
{
return $this->id;
@ -133,6 +136,18 @@ class NotConserved implements \JsonSerializable
return $this;
}
public function getAuthor(): ?string
{
return $this->author;
}
public function setAuthor(?string $author): static
{
$this->author = $author;
return $this;
}
public function jsonSerialize(): array
{
return [
@ -142,6 +157,7 @@ class NotConserved implements \JsonSerializable
'genericLocation' => $this->genericLocation,
'period' => $this->period,
'shortDescription' => $this->shortDescription,
'author' => $this->author,
'bibliography' => $this->bibliographies,
];
}

View File

@ -33,7 +33,8 @@ class BibliographyRepository extends ServiceEntityRepository
FROM bibliografia b
JOIN bibliografia_non_conser
ON id_bibliografia = b.id
WHERE id_non_conser = :id',
WHERE id_non_conser = :id
ORDER BY ordine ASC',
$rsm
);