One Of many (Inverse)
Since we could availableness each one of an excellent post’s statements, why don’t we identify a link to allow a comment to gain access to its mother article. To define the brand new inverse out-of a good hasMany relationship, explain a romance mode towards the son design and this phone calls the fresh belongsTo method:
Given that relationships could have been discussed, we are able to recover the newest Blog post design having a feedback of the opening this new post “active assets”: