Closed Bug 372001 Opened 18 years ago Closed 17 years ago

Fix app_model so it is possible to ignore default_fields

Categories

(addons.mozilla.org Graveyard :: Administration, defect)

defect
Not set
trivial

Tracking

(Not tracked)

VERIFIED WONTFIX

People

(Reporter: morgamic, Unassigned)

Details

If, when pulling default_fields by using findAll(...,null,....), you decide you want to pull all data regardless of membership in the default_fields array, there is no way to do that aside from expliticly defining all possible fields you want in the $_fields argument. There should be an easier way to say, "I want _everything_".
You could set default_fields to null before you execute the find. But obviously that'd affect later finds in the same request unless you reset it. Another idea would be to interpret boolean false in the field list of the findAll(...) command als "all fields". That'd be slightly unintuitive though. Instead of false we could also use the string "all" or so. Thoughts?
If default_fields is null, you could reset it in an afterFind(). I think cake follows this rule with some other parameters (ie. they only work for 1 call, and you have to override them again for subsequent calls).
Target Milestone: 3.1 → ---
Target Milestone: --- → 4.0.1
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WONTFIX
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.