Level 29
Aug 8, 2016
1
Level 2
Getting data from table
I have three table called, projects, stages, substages. Relation between them is like this, project hasmany stages and stages has many substages.
What i can do for getting data something like this, $project->stage->substage->name and it should display name of substage and $project->stage->name this should display name of stage and $project->name should display name of project. How i do this?
Please or to participate in this conversation.