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 ezpublish code???

bye
Andreas

Björn Dieding@xrow.de

Wednesday 03 December 2003 9:38:05 pm

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

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

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 ezpublish code and I won't insult someone.

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

Andreas

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

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