We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a22f63 commit 8761a5fCopy full SHA for 8761a5f
src/Book/src/Entity/Book.php
@@ -7,7 +7,6 @@
7
use Doctrine\ORM\Mapping as ORM;
8
use Light\App\Entity\AbstractEntity;
9
use Light\Book\Repository\BookRepository;
10
-use Ramsey\Uuid\UuidInterface;
11
12
#[ORM\Entity(repositoryClass: BookRepository::class)]
13
#[ORM\Table(name: 'books')]
@@ -42,15 +41,15 @@ public function setAuthor(string $author): void
42
41
43
/**
44
* @return array{
45
- * id: UuidInterface,
+ * id: non-empty-string,
46
* title: string,
47
* author: string
48
* }
49
*/
50
public function getArrayCopy(): array
51
{
52
return [
53
- 'id' => $this->id,
+ 'id' => $this->id->toString(),
54
'title' => $this->title,
55
'author' => $this->author,
56
];
0 commit comments