Welcome Guest, Not a member yet? Register   Sign In
CI do not have model to model relationships as like Yii. Plz implement if possible.
#2

Is it really a more optimized query? Behind the scenes, the with() command is still making joins, it's just making assumptions about what the fields on each table to join are. And, while it's true that a majority of cases will comply with that, it becomes just as verbose if you have special requirements that don't conform to the standard.

I'm not familiar enough with Yii to know, but that sounds like that call is part of an ORM system, which can make efficient queries when getting related fields, but it's not the same thing as a simple join.

CodeIgniter has always been a framework that leans more to the explicit side of code than the implicit, and this isn't expected to change much in the future.
Reply


Messages In This Thread
RE: CI do not have model to model relationships as like Yii. Plz implement if possible. - by kilishan - 12-14-2017, 10:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB