Object search support for ake() #236
Labels
No labels
bug
confirmed
critical
discussion
documentation
Doing
enhancement
experiment
suggestion
support
Testing
To Do
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: hazaar/framework#236
Loading…
Add table
Add a link
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?
So my
Hazaar\Model\Strict
class has dot-notation search support in it's::get()
method. I'm going to copy a lot of that and add the same feature toake()
.This will mean that
ake()
dot-notation references will be able to do this:This will look at the
names
element of$object
and search each of it's elements fornameType.id
that equals1
and then from that return thecontent
element.This is probably the shorted issue detail for probably one of the largest and most impactful changes I have ever made.
ake()
is my most favourite function and has not been updated in years. I'm excited to add this new feature to it without impacting existing functionality.changed the description
created merge request !130 to address this issue
mentioned in merge request !130
My example code for development:
This should end up returning
test3@hazaar.io
.mentioned in commit 216d233eafc8b2149bc0753a05f4359fa0f49b02