question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Many-to-many support

See original GitHub issue

First of all,

let me congratulate you for an amazing piece of software. It’s extremely useful and well designed 😃

Describe the problem feature solves Using Sequelize, I’m defining a many-to-many relationship like this:

Tag.belongsToMany(Wishlist, { through: TagWishlistReference });

So this thing is building the bridge between a Tag and a Wishlist.

Heading to the Create screen for TagWishlistReference, I only get an empty form that contains only a Save button.

Describe the solution you’d like I’d like to get 2 ID selectors, one for Tag and one for Wishlist just as it would be for manyToOne associations:

image

Describe alternatives you’ve considered I tried to integrate with https://gist.github.com/leibowitz/b94fc4eb2b8ab745267db99941757190 but couldn’t get it to work.

Acceptance criteria

  • I can select the Tag and the Wishlist
  • I can create new entities of TagWishlistReference
  • The same works when I edit a TagWishlistReference

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
sdepoldcommented, Sep 3, 2021

@dziraf Any chance to get a fix for this?

0reactions
AshotNcommented, Dec 20, 2022

@franka107 Is this something you plan on getting into the core of AdminJS?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ManyToMany (Java EE 6 ) - Oracle Help Center
The ManyToMany annotation may be used within an embeddable class contained within an entity class to specify a relationship to a collection of...
Read more >
Many-To-Many Relationship in JPA - Baeldung
Learn how to model a many-to-many relationship in Java using JPA. ... support for multiple connections between the same entities.
Read more >
Many-to-many relationships
A many-to-many relationship occurs when multiple records in a table are associated with multiple records in another table. For example, a many-to-many ......
Read more >
Best Practices for Many-to-Many Associations with Hibernate ...
Many-to-Many associations are very popular with JPA and Hibernate. Follow these best practices to avoid common pitfalls and create efficient mappings.
Read more >
Many-to-many relationships - Django documentation
To define a many-to-many relationship, use ManyToManyField . ... Reverse m2m queries are supported (i.e., starting at the table that doesn't have a ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found