Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
added 28 characters in body
Source Link
sdespont
  • 14.1k
  • 9
  • 61
  • 99

i have entity languages with format

id; name

en; English

pl; Polish

etc...

id; name en; English pl; Polish etc... 

And I have some Entity translations, that in one column has an associative array: {pl: "Some txt in PL", en: "Some txt in EN",...}

Everything is almost perfect, but i don't know how to create an form for editing such a thing :D I tried almost everything.

Translation.orm.yml:

... id: id: type: integer generator: { strategy: AUTO } fields: name: type: string length: 255 unique: true value: type: array ... 

i have entity languages with format

id; name

en; English

pl; Polish

etc...

And I have some Entity translations, that in one column has an associative array: {pl: "Some txt in PL", en: "Some txt in EN",...}

Everything is almost perfect, but i don't know how to create an form for editing such a thing :D I tried almost everything.

Translation.orm.yml:

... id: id: type: integer generator: { strategy: AUTO } fields: name: type: string length: 255 unique: true value: type: array ... 

i have entity languages with format

id; name en; English pl; Polish etc... 

And I have some Entity translations, that in one column has an associative array: {pl: "Some txt in PL", en: "Some txt in EN",...}

Everything is almost perfect, but i don't know how to create an form for editing such a thing :D I tried almost everything.

Translation.orm.yml:

... id: id: type: integer generator: { strategy: AUTO } fields: name: type: string length: 255 unique: true value: type: array ... 
Source Link
unbreak
  • 1k
  • 1
  • 19
  • 33

Symfony2 associative array in entity

i have entity languages with format

id; name

en; English

pl; Polish

etc...

And I have some Entity translations, that in one column has an associative array: {pl: "Some txt in PL", en: "Some txt in EN",...}

Everything is almost perfect, but i don't know how to create an form for editing such a thing :D I tried almost everything.

Translation.orm.yml:

... id: id: type: integer generator: { strategy: AUTO } fields: name: type: string length: 255 unique: true value: type: array ...