You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/book/v6/tutorials/create-book-module.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,9 +154,9 @@ class Book extends AbstractEntity
154
154
public function getArrayCopy(): array
155
155
{
156
156
return [
157
-
'uuid' => $this->getUuid()->toString(),
158
-
'name' => $this->getName(),
159
-
'author' => $this->getAuthor(),
157
+
'uuid' => $this->getUuid()->toString(),
158
+
'name' => $this->getName(),
159
+
'author' => $this->getAuthor(),
160
160
'releaseDate' => $this->getReleaseDate(),
161
161
];
162
162
}
@@ -181,7 +181,7 @@ use Dot\DependencyInjection\Attribute\Entity;
181
181
#[Entity(name: Book::class)]
182
182
class BookRepository extends AbstractRepository
183
183
{
184
-
public function getBooks(array $params = []): QueryBuilder
184
+
public function getBooks(array $params): QueryBuilder
185
185
{
186
186
return $this
187
187
->getQueryBuilder()
@@ -825,7 +825,9 @@ To list the books use:
825
825
curl http://0.0.0.0:8080/books
826
826
```
827
827
828
-
To retrieve a book, `curl` one of the links found in the output of the **list books** command, under `_embedded` . `books` . * . `_links` . `self` . `href`
828
+
To fetch a book, `curl` one of the links found in the output of the **list books** command, under `_embedded` . `books` . * . `_links` . `self` . `href`.
0 commit comments