Skip to content

Relationships in models are missed #115

@Shaws-WD

Description

@Shaws-WD

"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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions