Get author for NotConserved
This commit is contained in:
parent
3f9b1faabf
commit
6aa1302dea
@ -37,6 +37,9 @@ class NotConserved implements \JsonSerializable
|
|||||||
#[ORM\Column(type: Types::TEXT, nullable: true, name: 'descrizione_breve')]
|
#[ORM\Column(type: Types::TEXT, nullable: true, name: 'descrizione_breve')]
|
||||||
private ?string $shortDescription = null;
|
private ?string $shortDescription = null;
|
||||||
|
|
||||||
|
#[ORM\Column(name: 'autore_scheda', length: 100, nullable: true)]
|
||||||
|
private ?string $author = null;
|
||||||
|
|
||||||
public function getId(): ?int
|
public function getId(): ?int
|
||||||
{
|
{
|
||||||
return $this->id;
|
return $this->id;
|
||||||
@ -133,6 +136,18 @@ class NotConserved implements \JsonSerializable
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getAuthor(): ?string
|
||||||
|
{
|
||||||
|
return $this->author;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setAuthor(?string $author): static
|
||||||
|
{
|
||||||
|
$this->author = $author;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
public function jsonSerialize(): array
|
public function jsonSerialize(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
@ -142,6 +157,7 @@ class NotConserved implements \JsonSerializable
|
|||||||
'genericLocation' => $this->genericLocation,
|
'genericLocation' => $this->genericLocation,
|
||||||
'period' => $this->period,
|
'period' => $this->period,
|
||||||
'shortDescription' => $this->shortDescription,
|
'shortDescription' => $this->shortDescription,
|
||||||
|
'author' => $this->author,
|
||||||
'bibliography' => $this->bibliographies,
|
'bibliography' => $this->bibliographies,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,8 @@ class BibliographyRepository extends ServiceEntityRepository
|
|||||||
FROM bibliografia b
|
FROM bibliografia b
|
||||||
JOIN bibliografia_non_conser
|
JOIN bibliografia_non_conser
|
||||||
ON id_bibliografia = b.id
|
ON id_bibliografia = b.id
|
||||||
WHERE id_non_conser = :id',
|
WHERE id_non_conser = :id
|
||||||
|
ORDER BY ordine ASC',
|
||||||
$rsm
|
$rsm
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user