Custom package that needs to use the filterBy method
Permalink
Hi,
I have pretty much copied the entire user model for the listing of "jobs" (not system jobs). I am able to add custom attributes to each job using the dashboard, etc. For example: I have a "job_type" that has been added which can either be "permanent" or "temporary".
So am now trying to use the filterByAttribute method:
The ID for "permanent" jobs is definitely 10 so the list that gets outputted above should be filtered. However it's not - I get ALL the jobs. So - my question is could there be anything that I have missed when copying the built in User model that would stop the filter from working?
Thanks in advance.
I have pretty much copied the entire user model for the listing of "jobs" (not system jobs). I am able to add custom attributes to each job using the dashboard, etc. For example: I have a "job_type" that has been added which can either be "permanent" or "temporary".
So am now trying to use the filterByAttribute method:
The ID for "permanent" jobs is definitely 10 so the list that gets outputted above should be filtered. However it's not - I get ALL the jobs. So - my question is could there be anything that I have missed when copying the built in User model that would stop the filter from working?
Thanks in advance.