Skip to content

Three levels relationship #227

Description

@zahidmuhammadzaki

How i can relate 3 models in single call?

Just in case, i have 3 models:

  • Market_model => Market_tree_model => Market_tree_pc_model

Can i call this in 1 call like this?

$this->market_model->with(array(
  'market_tree' => array(
    'with' => market_tree_pc
)))->get_all();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions