Skip to content

Three levels relationship #227

@zahidmuhammadzaki

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();

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