Skip to content

Instantly share code, notes, and snippets.

View orangevinz's full-sized avatar

OrangeVinz orangevinz

  • IntoMyLab
  • Paris
View GitHub Profile
@orangevinz
orangevinz / Entity.php
Created May 24, 2022 13:04
Api Platform exclusion custom filter - Exclude an array of items, by their IRI or value
<?php
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiFilter;
use ApiPlatform\Core\Annotation\ApiResource;
use App\Filter\ExcludeSearchFilter;
use App\Repository\EntityRepository;
use Doctrine\ORM\Mapping as ORM;