Forums / General / Editing Existing Class

Editing Existing Class

Author Message

John Smith

Wednesday 17 January 2007 12:59:59 am

Hi there,

Hope someone can help me. I have a class called "article" with 7 attributes. Already created few objects of this class and now i want to add another couple of new attributes to the class.

Any suggestions what I can do so that old objects of the class get also effected with default values of the new attributes.

Cheers
Smith

Ɓukasz Serwatka

Thursday 18 January 2007 12:46:15 am

You will need to use a custom PHP script for this. Script will update all existing content objects with new attribute.

http://ez.no/community/contribs/hacks/update_class_from_command_line

Access to PHP command line is needed.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog