Forums / General / Editing Existing Class

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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