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

Tracking schema with associations #29

Open
bbb95 opened this issue Jan 31, 2020 · 3 comments
Open

Tracking schema with associations #29

bbb95 opened this issue Jan 31, 2020 · 3 comments

Comments

@bbb95
Copy link

bbb95 commented Jan 31, 2020

Hello,

I track schemas items, reservations, and items_reservations. I want to show all Item changes, including the item reservations, when any item_reservation is inserted or deleted.

I start the query from versions and searching for entity_schema is items, and entity_id is the current item id. After that I need to join all 'items_reservations' versions to know when item was reserved or deleted from reservation.

Do you have any solution or idea, how can I make this?

Thanks

@narrowtux
Copy link
Contributor

Tracking of many-to-many associations is not supported at the moment

@fantypants
Copy link

fantypants commented Apr 9, 2021

Tracking of many-to-many associations is not supported at the moment

Does the above apply to embeds, particularly embeds_many?

@narrowtux
Copy link
Contributor

@fantypants Embeds are tracked as part of the diff of the enclosing schema, embeds_one and embeds_many both work.

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

3 participants