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

How to work with s2a_collection_table and embed_types ? #191

Open
ksn135 opened this issue Aug 3, 2015 · 3 comments
Open

How to work with s2a_collection_table and embed_types ? #191

ksn135 opened this issue Aug 3, 2015 · 3 comments

Comments

@ksn135
Copy link
Contributor

ksn135 commented Aug 3, 2015

My entities and configs are here
I've tried to add collection of objects using embed_types but I've got unexpected results:
screenshot
I'm trying to show only title field of Result entity in collection widget.
What am I doing wrong ?
Please, help.

@pjam
Copy link
Contributor

pjam commented Nov 23, 2015

Hi @ksn135

Have you got this working? I'm trying to use s2a_collection_table but I have a different problem.

When I save my form, the child entities don't pick up the id from the parent. Do I need to setup anything else beside what you shared here? Some listeners or form type overriding like what we need if not using s2a? If so, can you post/gist some examples?

Thanks

@ksn135
Copy link
Contributor Author

ksn135 commented Nov 24, 2015

@pjam No, I did not.

@pjam
Copy link
Contributor

pjam commented Nov 24, 2015

Thanks anyway @ksn135 , I finally managed to make it work.

Regarding your problem, I suggest you create 2 simple entities for testing, first without translations, then translations in the child entity and finally translations in the parent entity.

I'm saying this because I have this working with translatable children in the collection. I will soon make the parent entity also translatable, if it works I'll show you my code.

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

2 participants