How do I filter by the sfGuardUserProfile fields, when using the sfGuard plugin in Symfony 1.4?
As I think is standard, I created a sf_guard_user_profile table to hold fields like first name, last name, and so on.
I have a fairly stock list of users for my admin index page. I can filter by the username just fine. But I cannot filter by a field that is in the sf_guard_user_profile table, like last_name.
My generator.yml looks like
generator:
class: sfPropelGenerator
param:
model_class: sfGuardUser
config:
list:
display: [=username, first_name, last_name, last_login, role]
batch_actions: []
filter:
display: [username]
form:
class: myGuardUserAdminForm
I can get the fields to show up in the form on the page by changing to:
filter:
class: sfGuardUserProfileFormFilter
but when I submit that form with a valid value for last_name, it doesn't filter. All records are returned.