Welcome Guest, Not a member yet? Register   Sign In
Nested Set - Depth of a Sub-Tree - Active Record
#2

[eluser]PhilTem[/eluser]
It's not possible with CI's standard AR-class since you got a subquery. There are however some techniques that allow subqueries, like you can find here or here (just to name a few).

I personally never looked into this subqueries thingy because I didn't need it so far. Or if I needed it most of the times I was able to just run two separate queries and combine the results according to my needs.
But since I'm working with Nested Sets at the moment what seems to be much more difficult than standard table layouts, I guess there's no way to avoid subqueries Tongue


Messages In This Thread
Nested Set - Depth of a Sub-Tree - Active Record - by El Forum - 10-10-2012, 05:44 AM
Nested Set - Depth of a Sub-Tree - Active Record - by El Forum - 10-10-2012, 05:51 AM
Nested Set - Depth of a Sub-Tree - Active Record - by El Forum - 10-10-2012, 07:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB