Skip to content

[NFR] Nested Set - pass custom parameters to search query OR implement user callback to modify DB queries #829

@temuri416

Description

@temuri416

Hi,

I need to be able to do something like this:

$children = $node->descendants([
    'approved' => 1,
]);

What do you think - maybe we need some sort of listener to pass the $query from here:

https://github.com/phalcon/incubator/blob/master/Library/Phalcon/Mvc/Model/Behavior/NestedSet.php#L206

And, to generalize it, call user method before each of the return $query->execute() that access the DB?

Thanks!

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions