yesodweb/persistent — Issue #42: Generating ID based filter for PersistEntity
Author: piyush-kurur
Created: 2012-01-22 05:38:21+00:00
State: open

Currently if one wants to filter based on ID it is not possible without knowing the entity.
For example the filter PersonID ==. can be used only if we know the type (person in this case)
Extend if possible the PersistEntity class with a member that returs the id filter. Some thing along
the following lines

~~~

idFilter :: Key backend v -> Filter v -- Name of this member can be different

~~~

Besides being a natural requirement, it can simplify description of access controls in an CRUD interface.