sfPropelORMPlugin icon indicating copy to clipboard operation
sfPropelORMPlugin copied to clipboard

i18n embedRelation forms don't save correctly

Open RamzesTheSecond opened this issue 12 years ago • 6 comments

When trying to save many new i18n embededRelation forms only the last one gets saved, other ones don't save to the database.

RamzesTheSecond avatar Nov 11 '12 18:11 RamzesTheSecond

Do you have the last version? Check this: https://github.com/propelorm/sfPropelORMPlugin/commit/9ec13113d9ae4548033704d2c5c22c9c26577dda#commitcomment-386338

rsichnyi avatar Nov 11 '12 23:11 rsichnyi

Yes I do have the latest version and it doesn't fix the issue. The data from NOT i18n fields is saved correctly whereas data from i18n fields is not saved.

RamzesTheSecond avatar Nov 12 '12 09:11 RamzesTheSecond

How to reproduce: create i18n relation form and embedRelation in other form. Than try to add 3 new i18n records. The data from i18n fields is not saved.

RamzesTheSecond avatar Nov 12 '12 09:11 RamzesTheSecond

https://github.com/propelorm/sfPropelORMPlugin/issues/146

rsichnyi avatar Nov 12 '12 10:11 rsichnyi

So it will not be resolved?

RamzesTheSecond avatar Nov 12 '12 11:11 RamzesTheSecond

I think no. Anyway, it's easy to save form data with custom code (validation is handled correctly, so you can just populate objects from form values and save them).

rsichnyi avatar Nov 12 '12 21:11 rsichnyi