Skip to content

Commit

Permalink
Merge pull request #14 from froozeify/filter-by-activities
Browse files Browse the repository at this point in the history
Add filter on activities id for memberPresences
  • Loading branch information
froozeify authored Mar 16, 2024
2 parents 98925c2 + 078d173 commit 62958a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Entity/MemberPresence.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use ApiPlatform\Doctrine\Orm\Filter\DateFilter;
use ApiPlatform\Doctrine\Orm\Filter\OrderFilter;
use ApiPlatform\Doctrine\Orm\Filter\SearchFilter;
use ApiPlatform\Metadata\ApiFilter;
use ApiPlatform\Metadata\ApiResource;
use ApiPlatform\Metadata\Delete;
Expand Down Expand Up @@ -98,7 +99,7 @@
#[ApiFilter(DateFilter::class, properties: ['date' => DateFilter::EXCLUDE_NULL])]
#[ApiFilter(OrderFilter::class, properties: ['date' => 'DESC'])]
#[ApiFilter(MultipleFilter::class, properties: ['member.firstname', 'member.lastname', 'member.licence'])]

#[ApiFilter(SearchFilter::class, properties: ['activities.id' => 'exact'])]
class MemberPresence {
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'SEQUENCE')]
Expand Down

0 comments on commit 62958a4

Please sign in to comment.