|
|
|
@@ -7,6 +7,7 @@ |
|
|
|
|
|
|
|
namespace App\ApiResource; |
|
|
|
|
|
|
|
use ApiPlatform\Doctrine\Orm\Filter\OrderFilter; |
|
|
|
use ApiPlatform\Doctrine\Orm\Filter\SearchFilter; |
|
|
|
use ApiPlatform\Doctrine\Orm\State\Options; |
|
|
|
use ApiPlatform\Metadata\ApiFilter; |
|
|
|
@@ -48,6 +49,7 @@ use Symfony\Component\Validator\Constraints\NotBlank; |
|
|
|
'contact' => 'exact', |
|
|
|
'partnerProduct.product.name' => 'ipartial', |
|
|
|
])] |
|
|
|
#[ApiFilter(OrderFilter::class, properties: ['partnerProduct.product.name'], arguments: ['orderParameterName' => 'order'])] |
|
|
|
class ContactPartnerProductApi |
|
|
|
{ |
|
|
|
#[ApiProperty(readable: false, writable: false, identifier: true)] |
|
|
|
|