Skip to content

Conversation

loic425
Copy link
Member

@loic425 loic425 commented Jun 17, 2025

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Related tickets partially #1029
License MIT

public function buildGrid(GridBuilderInterface $gridBuilder): void
{
$gridBuilder
->orderBy('fullName', 'asc')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will it work since it's not a real doctrine field? Or it specifies grid field fullName default sorting?

Copy link
Member Author

@loic425 loic425 Jun 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's kind of decoupled yes. We just need a field with that id. I think that grid is cominng from the Sylius stack test application. I've reused an existing PoC code.

public function it_allows_browsing_speakers(): void
{
SpeakerFactory::new()
->withFirstName('Francis')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can Francis sue sylius for becoming test data? 😂

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

He's already on Sylius stack phpunit tests where this test is inspired.

@loic425 loic425 merged commit 4bd4943 into Sylius:external-routing-files Jun 17, 2025
15 checks passed
@loic425 loic425 deleted the add-tests-for-external-routing-files branch June 17, 2025 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants