Forums / Developer / array fields 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".

array fields in eZPersistentObject

Author Message

Marko Žmak

Wednesday 16 February 2011 9:42:14 am

First question: Can I use an array field in a class that extends eZPersistentObject and map it to a table column?

Judging from the code of ezpersistentobject.php it seems that it can be done by using "function_attributes", "functions" and "set_functions".

Second question: Can the array fields be used as the object's keys?

Again, by inspecting the code I see no reason why not.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Marko Žmak

Wednesday 16 February 2011 4:38:27 pm

Further inspection leads to clear answers...

Firs: Yes.

Second: No.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth