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)
Tracking
(Not tracked)
VERIFIED
WONTFIX
4.0.1
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_".
Comment 1•18 years ago
|
||
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?
Comment 2•18 years ago
|
||
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).
Updated•18 years ago
|
Target Milestone: 3.1 → ---
Updated•17 years ago
|
Target Milestone: --- → 4.0.1
| Reporter | ||
Updated•17 years ago
|
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WONTFIX
Updated•17 years ago
|
Status: RESOLVED → VERIFIED
| Assignee | ||
Updated•9 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•