Przeglądaj źródła

fix comment search filter

master
Daniel 1 rok temu
rodzic
commit
9c157090f3
2 zmienionych plików z 2 dodań i 2 usunięć
  1. +1
    -1
      src/ApiResource/CommentApi.php
  2. +1
    -1
      src/ApiResource/DocumentApi.php

+ 1
- 1
src/ApiResource/CommentApi.php Wyświetl plik

@@ -50,7 +50,7 @@ use Symfony\Component\Validator\Constraints\NotBlank;
processor: EntityClassDtoStateProcessor::class, processor: EntityClassDtoStateProcessor::class,
stateOptions: new Options(entityClass: Comment::class), stateOptions: new Options(entityClass: Comment::class),
)] )]
#[ApiFilter(SearchFilter::class, properties: ['partner' => 'exact', 'contact' => 'exact'])]
#[ApiFilter(SearchFilter::class, properties: ['posting' => 'exact', 'owner' => 'exact'])]
class CommentApi implements OwnerInterface class CommentApi implements OwnerInterface
{ {
#[ApiProperty(readable: false, writable: false, identifier: true)] #[ApiProperty(readable: false, writable: false, identifier: true)]


+ 1
- 1
src/ApiResource/DocumentApi.php Wyświetl plik

@@ -53,7 +53,7 @@ use Symfony\Component\Validator\Constraints\NotBlank;
processor: EntityClassDtoStateProcessor::class, processor: EntityClassDtoStateProcessor::class,
stateOptions: new Options(entityClass: Document::class), stateOptions: new Options(entityClass: Document::class),
)] )]
#[ApiFilter(SearchFilter::class, properties: ['owner' => 'exact', 'partner' => 'exact', 'product' => 'exact'])]
#[ApiFilter(SearchFilter::class, properties: ['createdBy' => 'exact', 'partner' => 'exact', 'product' => 'exact'])]
class DocumentApi class DocumentApi
{ {
#[ApiProperty(readable: false, writable: false, identifier: true)] #[ApiProperty(readable: false, writable: false, identifier: true)]


Ładowanie…
Anuluj
Zapisz