Get all Relations of a M to N - Before sending to the view

Posted 1 month ago by zaster

SubJob and Dispatch has a Many to Many relationship

I need to do something like this

      foreach($sub_jobs as $sub_job)
            $dispatches = $dispatches + $sub_job->dispatches;

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.