laravel-er-diagram-generator icon indicating copy to clipboard operation
laravel-er-diagram-generator copied to clipboard

Shows misplaced relationship arrows if method name is not expected

Open Norgul opened this issue 4 years ago • 0 comments

I have EmailMessage and EmailAttachment models with 1:M relationship defined. It makes sense on EmailAttachment to have method:

public function message()
{
    return $this->belongsTo(EmailMessage::class);
}

And on EmailMessage:

public function attachments()
{
    return $this->hasMany(EmailAttachment::class);
}

However hasMany produces right relation, belongsTo does not.

image

I am using stock config in this version: "beyondcode/laravel-er-diagram-generator": "^1.4"

Norgul avatar Jun 05 '20 08:06 Norgul