Skip to content

Shows misplaced relationship arrows if method name is not expected #79

@Norgul

Description

@Norgul

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions