ZF-5404: Zend_Form removeElements for Zend_Form_Subform does not removes belongsTo relation on the element

Issue Type: Sub-task Created: 2009-01-05T03:35:14.000+0000 Last Updated: 2012-11-20T21:38:03.000+0000 Status: Open Fix version(s): Reporter: Regis Leroy (regilero) Assignee: None Tags: - Zend_Form

Related issues: Attachments:


cf title. This makes the elements stills belonging to the subform. You can hack the elemnt with setBelongsTo() but trying to mave an hidden field from a subform to the main Form I cannot find a way to do it. The element is still displayed with the subform name, you cannot pass an empty value to setBelongsTo(). Maybe Zne_dForm_Subform should add some stuff on inherithed removesElement() function to clean this belongsTo data.


Posted by Christian Albrecht (alab) on 2010-04-16T06:24:11.000+0000

Yes that is true, but how would you differentiate if belongsTo was set directly on the Element instead of beeing set through $form->setElementsBelongTo when adding an Element to a SubForm.

Or is it that this value should be discarded in either cases?

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.