ahDoctrineEasyEmbeddedRelationsPlugin - 1.4.1

Easily embed related forms and add new as well as edit and delete existing related records within one form.

You are currently browsing
the website for symfony 1

Visit the Symfony2 website

« Back to the Plugins Home


Forgot your password?
Create an account



advanced search
Information Readme Releases Changelog Contribute

Changelog for release 1.4.1 - 28/06/2010

  • bugfix: fixed a bug regarding Doctrine inheritance

Other releases

Release 1.4.4 - 01/07/2010

  • bugfix: empty new forms are no longer unset completely, only their values; so the admin generator doesn't crash anymore when the 'new_relationName' widget is in the 'display' array

Release 1.4.3 - 29/06/2010

  • bugfix: fixed is_a() producing E_STRICT warning in PHP between 5.0.0 and 5.3.0 because is_a() is deprecated in these versions - it's not beginning with 5.3.0 - d'oh! :)

  • bugfix: creating a completely new main object and, at the same time, also adding new related objects did not work

Release 1.4.2 - 28/06/2010

  • added the MooTools script to dynamically add more new forms (just about a 1:1 conversion of the jQuery one)

Release 1.4.1 - 28/06/2010

  • bugfix: fixed a bug regarding Doctrine inheritance

Release 1.4.0 - 28/06/2010

  • added new maintainers for the package (thanks koto!)

  • bugfix: fixed a bug regarding Doctrine inheritance (thanks Yves!)

  • bugfix: to disable the checkbox to delete existing related records set the option formClassArgs to this: 'formClassArgs' => array(array('ah_add_delete_checkbox' => false))

  • added new developer: FabryB :)

  • bugfix: newFormClassArgs option didn't work the way it was described in the README (option was automatically wrapped in an array) => please read the UPGRADE GUIDE that is packaged with this plugin! :)

  • bugfix: when using the multipleNewForms and newFormsInitialCount options it was indeed creating multiple forms to add related objects but it also did that for ONE-to-ONE relations ;-)

  • bugfix: newRelationButtonLabel did not work at all :(

  • new feature: customEmbeddedFormLabelMethod option is a method that is called on each existing related object (not the containing form!) so you can customize the form label that is shown in front of each existing embedded form. This option is new since version 1.4.0.

  • bugfix: The plugin finally works with embedded forms that have checkboxes, radio buttons and/or file upload fields (what's especially interesting is the use of sfWidgetFormInputFileEditable)!

I also finally added unit tests that should cover at least 80% of the functionality. Because I don't have that much time I used the symfony Core's unit tests as a starting point so they actually live inside the lib/vendor/symfony directory of one of my projects. If there's someone who knows how to set up plugin-internal unit tests (with a SQlite database for testing persistence stuff), I'd be glad to provide these unit tests. :) Help's always welcome!

Release 1.3.4 - 05/05/2010

Yikes! I forgot to add the new files that were introduced in version 1.3 and up. I was also naive enough to think PEAR would automatically include those. :(

Release 1.3.1 - 28/04/2010

Bugfix: Embedded i18n forms could not be saved; thanks for the bug info to Sári Márton! Trivial: removed some debug logger calls (they were commented out anyway)

Release 1.3.0 - 27/04/2010

Thanks to koto (on GitHub) the whole workhorse class has been refactored into more manageable parts! :)

  • in addition to this koto has been kind enough to add the ability to add multiple new objects in one go, which he also documented in the README

  • add to that the ability to add new forms dynamically with JavaScript (think of rendering a partial with the "Add form" inside via AJAX) and you'll know that this rightfully deserved a minor version number increase!

Thank you koto!

Release 1.2.4 - 31/03/2010

  • added ability to display the empty form to add new related objects below the already existing related objects

  • documented new option in the README Because of an error, there was no "real" release version 1.2.3, there is a tag for it in the Subversion repository but nothing more. :)

Release 1.2.2 - 30/03/2010

  • cleaned up TODO

  • no code changes! Because of an error, there was no "real" release version 1.2.1, there is a tag for it in the Subversion repository but nothing more. :)

Release 1.2.0 - 16/02/2010

  • fixed: no useless "add new" forms anymore when the embedded relation is one-to-one and a related object exists :)

  • removed all debug code calls

  • improved code documentation

Release 1.1.0 - 11/02/2010

  • fixed a few bugs, so passing options to the embedded forms actually works.

  • not necessary anymore to create a dedicated form to add the delete checkboxes, this is now handled by symfony's event dispatcher and the form.post_configure event. :)

  • updated the README

Release 1.0.1 - 11/02/2010

Fixed README (typos, logic).

Release 1.0.0 - 10/02/2010

Initial release.