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

Entities automatically created for many-to-many relationship tables #1767

Closed
yurikuzn opened this issue Aug 4, 2020 · 4 comments
Closed
Assignees
Milestone

Comments

@yurikuzn
Copy link
Contributor

yurikuzn commented Aug 4, 2020

Entities are available for all many-to-many relationship tables. They are automatically created after clearing cache.

Usage example:

$collection = $entityManager
    ->getRepository('EntityEmailAddress')
    ->where('emailAddressId=', 'someEmailAddressId')
    ->find();
@yurikuzn yurikuzn added this to the Version 6.0.0 milestone Aug 4, 2020
@yurikuzn yurikuzn self-assigned this Aug 4, 2020
@yurikuzn yurikuzn closed this as completed Aug 4, 2020
@eymen-elkum
Copy link
Contributor

Hi @yurikuzn

Will be great if also can list the middle entity on the entity manager, so we can add additional columns

This is useful for my extension link-multiple-inline-list

@yurikuzn
Copy link
Contributor Author

yurikuzn commented Aug 8, 2020

The feature list for 6.0 is frozen.

I don't think that many-to-many tables should be available as entities on admin UI. The ability to define columns for these tables should be implemented in the future but not in the way that relationships are represented as entities.

@yurikuzn yurikuzn changed the title Entities for many-to-many relationship tables Entities automatically created for many-to-many relationship tables Oct 19, 2020
@rabiibrahimi
Copy link
Contributor

I think it will be great addition if we could access middle tables so we could extend them add more fields etc.

@crmMada
Copy link

crmMada commented Apr 3, 2024

So, does it mean that we can't access that middle table name?

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

No branches or pull requests

4 participants