dongre6073 2015-05-21 20:01
浏览 63

Yii 2 :(递归)树searchModel

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?

  • 写回答

0条回答 默认 最新

    报告相同问题?