Forums / Developer / sql ALTER in eZPersistentObject

"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".

sql ALTER in eZPersistentObject

Author Message

Esben Visfeldt

Monday 02 August 2004 1:23:52 am

Can anyone tell me if it is possible to make an ALTER sql query using eZPersistentObject?
I would like to add columns to a DB using a module that I'm building.
As far as I can see, I can only make changes to rows. I would really prefer to use eZPersistentObject instead of some query hack...

Björn X

Monday 02 August 2004 3:19:27 am

Is not possible.

The definfition of a eZPersistentObject is not only dependent on the db column definitions it is also dependaten on the definition stored in eZPersistentObject::definition()

other helper functions are dependant on information from eZPersistentObject::definition()

Esben Visfeldt

Monday 02 August 2004 7:44:31 am

Thanks Björn!

I guess I will have to manage without eZPersistentObject...