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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.