laravel-er-diagram-generator
laravel-er-diagram-generator copied to clipboard
Shows misplaced relationship arrows if method name is not expected
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.
I am using stock config in this version: "beyondcode/laravel-er-diagram-generator": "^1.4"