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

Relationships in models are missed #115

Open
Shaws-WD opened this issue Sep 29, 2024 · 0 comments
Open

Relationships in models are missed #115

Shaws-WD opened this issue Sep 29, 2024 · 0 comments

Comments

@Shaws-WD
Copy link

"Laravel ER Diagram Generator" misses most of the relationships between tables in my Laravel models. For example, the PersonOrg.php model (attached) contains 'hasMany' relationships to both the User table and the several columns in the Order table. However these relationships do not appear in graph.png
I have attached the file, but an example is
$query = $this->hasMany(\App\Models\Order::class, 'customer_poid');
The only feature of my code that is not 'standard' is the column name which does not conform to the Eloquent default. (the column is called 'customer_poid' rather than' personorg_poid'

(Thanks for developing and maintaining "Laravel ER Diagram Generator". I look forward to getting it working)

PersonOrg.txt

graph1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant