Add Field::fromClass() #100
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Research
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#93 Support for subqueries
slendium/ocd
Reference
slendium/ocd#100
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently it is not possible to obtain the field definition for a single field without evaluating the entire Schema. For the implementation of subqueries (#93) it would be more efficient to query only one (or a few) fields from a given class at a time.
A static method
Field::fromClass($class, $fields)should be introduced to make this possible. The$fieldsparameter should allow either a singlenon-empty-string(returns a singleField) or anon-empty-list<non-empty-string>(returns a map ofField's).