Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter custom name #2310

Closed
soullivaneuh opened this issue Nov 5, 2018 · 4 comments
Closed

Filter custom name #2310

soullivaneuh opened this issue Nov 5, 2018 · 4 comments

Comments

@soullivaneuh
Copy link
Contributor

According to the documentation, I can set a custom name for an order filter, but not a classic search filter.

It would be great to be able to do this.

Example:

/**
 * @var Os|null
 *
 * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Os", inversedBy="servers")
 * @ORM\JoinColumn(referencedColumnName="id", nullable=true)
 * @Groups({"get", "post:admin", "put:admin"})
 * @ApiFilter(SearchFilter::class, strategy="exact",
 *     properties={
 *         "os.name"
 *     })
 */
private $os;

This will give me the os.name filter. It is working, but not very user friendly nor useful for the API end user.

I would like to name this filter simply os.

It is not currently possible if I am right.

@soullivaneuh
Copy link
Contributor Author

Any feedback about the idea?

@soullivaneuh
Copy link
Contributor Author

Am I the only one of this planet to have this need? 🙃

@julienfalque
Copy link
Contributor

You're not 😊, I made a similar proposal recently: #3606. I didn't know about yours, maybe we can close mine as duplicate.

@soyuka
Copy link
Member

soyuka commented Feb 23, 2021

Let's follow this at #3606

@soyuka soyuka closed this as completed Feb 23, 2021
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 a pull request may close this issue.

3 participants