i'm searching an idea to implement in Yii 2 a searchModel that pulls data from mysql like a Tree.
An example: i have a tree structure with users and all user have (one or more) contract. Now i would to get from my db all contracts signed by "user_id" and all others contract signed by every son (and son of son..ecc..) of "user_id".
I know how i can read all "user_id"'son (i use a recursive function in a view), but after...?
Any suggestion?