If this is an issue, you should report it on the issue tracker instead. Since you also found the commit that causes it, a test is also useful to show the BC break.
Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 22 May 2013 08:07, Matus Zeman <[email protected]> wrote: > Any comments on this as it's very important feature to be discussed I > believe? > > Matus > > > On 20 May 2013 21:04, Matus Zeman <[email protected]> wrote: > > > Hi there, > > It looks like form element name "wrapping" does not work as in previous > > versions of ZF2. > > It's related to this commit: > > > https://github.com/zendframework/zf2/commit/768c3d8347bd76ae86f1a6832e374cbe12c2cef1 > > > > To explain: > > Pre version 2.2: > > When you added "child" Form into a Form all element names (of child form) > > were prefixed by parent form name automatically and parent form elements > > were not prefixed at all - I considered this as logical and correct > > behaviour (maybe not?). > > > > In version 2.2: > > Either child form element names are not prefixed > > OR > > When I set setWrapElements(true) on the parent form all elements are > > prefixed including child ones so I would have e.g. registration[id], > > registration[auth_credential][identity], > > registration[auth_credential][password]... > > > > Is this intended behaviour? It hasn't been like in any of earlier > versions > > of ZF2. > > If it is, what's the best way how to achieve pre 2.2 behaviour? > > > > Cheers, > > Matus > > >
