Forums / Developer / eZPersistentObject: how to create unique Database entries?

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

eZPersistentObject: how to create unique Database entries?

Author Message

Andreas Gellhaus

Tuesday 02 December 2003 6:40:04 am

Hi,

I have made my own paymentmethod module with his own Database-table. So far so good...
Now I want to know what I have to do to say the store-function ('storeObject()') to Update the table.
I know that it is able to do this but how????

Could I tell eZPersistentObject in my Module definition-function that there is a Unique field????

Thank you for your help.

Andreas

Andreas Gellhaus

Wednesday 03 December 2003 5:50:30 am

If someone is interested I made it ;-)

I just made a "relation" between my table and the ezoder table in the definition function.
like this:

----------------------------------------------------------
"relations" => array( "order_id" => array( "class" => "ezorder",
"field" => "id" ) ),
-----------------------------------------------------------

Sometimes I think nobody in this forum knows what I mean ....
Is there nobody spending hours and hour reading Exponential code???

bye
Andreas

Björn X

Wednesday 03 December 2003 9:38:05 pm

Sometimes I do :-)... maybe we are reading different parts of the eZ book

Andreas Gellhaus

Thursday 04 December 2003 1:22:29 am

Hi Björn,

I'm sure that there are some users working deep in the Exponential code and I won't insult someone.

And you are right, Exponential is a book with a lot of pages.

Andreas

p.s.: interested in a German user group?