Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Norgul opened this issue Jun 5, 2020 · 0 comments
Open
Labels
good first issue Good for newcomers

Comments

@Norgul
Copy link

Norgul commented Jun 5, 2020

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"

@mechelon mechelon added the good first issue Good for newcomers label Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants