Skip to content

Commit 28ea802

Browse files
author
Thibaudeau Pierre
committed
review @soyuka
1 parent 7e049f3 commit 28ea802

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/controllers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ use ApiPlatform\Metadata\Post;
322322

323323
#[ApiResource]
324324
#[Get]
325-
#[Post(name: 'publication', routeName: 'book_post_publication')]
325+
#[Post(name: 'post_publication', routeName: 'book_post_publication')]
326326
#[Post(name: 'book_post_discontinuation')]
327327
class Book
328328
{

core/mongodb.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
236236
* @ODM\Document
237237
*/
238238
#[ApiResource]
239-
#[GetCollection(doctrineMongodb: ['execute_options' => ['allowDiskUse' => true]])]
239+
#[GetCollection(extraProperties: ['doctrineMongodb' => ['execute_options' => ['allowDiskUse' => true]]])]
240240
class Offer
241241
{
242242
// ...
@@ -257,7 +257,7 @@ use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
257257
/**
258258
* @ODM\Document
259259
*/
260-
#[ApiResource(doctrineMongodb: ['execute_options' => ['allowDiskUse' => true]])]
260+
#[ApiResource(extraProperties: ['doctrineMongodb' => ['execute_options' => ['allowDiskUse' => true]]])]
261261
class Offer
262262
{
263263
// ...

0 commit comments

Comments
 (0)