Relations In Relations

is possible to use use relations on models that are related to other models?.. like this


in model 1 can i use relations that are related in model 3 with 5?

Yes, but watch out for generated SQL.

In some cases you may want to use with() to fetch results in one query.

Also, define through relations at least for convenience.

Check out my extension:

And check out its demo (which you can download).

It makes using relations easier (especially with gridviews).

Of course its possible. If you haven’t read it yet, be sure to check the guide section on this.