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

Custom Filters for related entity properties #434

Open
mikeyudin opened this issue May 9, 2013 · 6 comments
Open

Custom Filters for related entity properties #434

mikeyudin opened this issue May 9, 2013 · 6 comments
Assignees
Milestone

Comments

@mikeyudin
Copy link
Contributor

Is it possible to define list filters for properties on related one-to-many entities? As a simple example, Products and Attributes:

Product:
  name
  attributes

Attributes:
  product
  attribute_value
  attribute_type

AttributeType:
  name

I'd like to be able to filter Products by Attribute Types. Is this possible with the current functionality?

@ioleo
Copy link
Member

ioleo commented May 9, 2013

If I remember correct it's not possible.

You can define virtual fields with custom getters, but as far as I am aware of you cannot use them for filters -> see #239

@mikeyudin
Copy link
Contributor Author

I notice that there is an addCollectionFilter method in DoctrineQueryFilter that takes a property path with a period to designate the related property, however, I cannot figure out how that would be assigned in the generator.yml. Thoughts?

@ioleo
Copy link
Member

ioleo commented May 11, 2013

Im not familiar with that, maybe @cedriclombardot or @CayetanoSoriano ?

@ioleo
Copy link
Member

ioleo commented Jul 15, 2013

@mikeyudin This will be fixed in next PR I'll be working on (dynamic filters). Stay tuned!

@bobvandevijver
Copy link
Member

@loostro How far are you with this PR?

@ioleo
Copy link
Member

ioleo commented Jan 31, 2014

@bobvandevijver i've abandoned working on this

@ioleo ioleo added this to the v2.0 milestone Jun 20, 2014
@ioleo ioleo self-assigned this Jun 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants