File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed
Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public function __construct(
2424 private readonly string |null $ alias = null ,
2525 private readonly string |null $ description = null ,
2626 private readonly int |null $ limit = null ,
27- private readonly string |null $ criteriaEventName = null ,
27+ private readonly string |null $ eventName = null ,
2828 private readonly string |null $ hydratorStrategy = null ,
2929 private readonly array $ excludeFilters = [],
3030 private readonly array $ includeFilters = [],
@@ -56,8 +56,8 @@ public function getDescription(): string|null
5656 return $ this ->description ;
5757 }
5858
59- public function getCriteriaEventName (): string |null
59+ public function getEventName (): string |null
6060 {
61- return $ this ->criteriaEventName ;
61+ return $ this ->eventName ;
6262 }
6363}
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ private function buildAssociationMetadata(string $entityClass): void
9292 'limit ' => null ,
9393 'excludeFilters ' => [],
9494 'description ' => $ associationName ,
95- 'criteriaEventName ' => null ,
95+ 'eventName ' => null ,
9696 'hydratorStrategy ' => Strategy \AssociationDefault::class,
9797 ];
9898 }
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ private function buildMetadataForAssociations(
204204 'limit ' => $ instance ->getLimit (),
205205 'description ' => $ instance ->getDescription (),
206206 'excludeFilters ' => Filters::toStringArray ($ instance ->getExcludeFilters ()),
207- 'criteriaEventName ' => $ instance ->getCriteriaEventName (),
207+ 'eventName ' => $ instance ->getEventName (),
208208 'hydratorStrategy ' => $ instance ->getHydratorStrategy () ??
209209 Strategy \AssociationDefault::class,
210210 ];
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public function get(Entity $entity): Closure
6262 $ targetEntity = $ this ->entityTypeContainer ->get ($ targetClassName );
6363
6464 // Get event name
65- $ eventName = $ this ->metadata [$ entityClassName ]['fields ' ][$ targetCollectionName ]['criteriaEventName ' ];
65+ $ eventName = $ this ->metadata [$ entityClassName ]['fields ' ][$ targetCollectionName ]['eventName ' ];
6666
6767 return $ this ->buildPagination (
6868 entity: $ targetEntity ,
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ class Artist
6666 #[GraphQL \Association(group: 'DuplicateGroup ' )]
6767 #[GraphQL \Association(group: 'DuplicateGroupAssociation ' )]
6868 #[GraphQL \Association(group: 'DuplicateGroupAssociation ' )]
69- #[GraphQL \Association(group: 'CriteriaEvent ' , criteriaEventName : self ::class . '.performances.criteria ' )]
69+ #[GraphQL \Association(group: 'CriteriaEvent ' , eventName : self ::class . '.performances.criteria ' )]
7070 #[GraphQL \Association(group: 'LimitTest ' )]
7171 #[GraphQL \Association(group: 'AttributeLimit ' , limit: 3 )]
7272 #[GraphQL \Association(group: 'ExtractionMap ' , alias: 'gigs ' )]
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public function testStaticMetadata(): void
5353 'alias ' => null ,
5454 'limit ' => null ,
5555 'description ' => null ,
56- 'criteriaEventName ' => null ,
56+ 'eventName ' => null ,
5757 'hydratorStrategy ' => 'ApiSkeletons\Doctrine\ORM\GraphQL\Hydrator\Strategy\AssociationDefault ' ,
5858 'excludeFilters ' => ['eq ' ],
5959 ],
You can’t perform that action at this time.
0 commit comments