Forums / Developer / eZPersistentObject: how to create unique Database entries?
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
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???
byeAndreas
Björn [email protected]
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/
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.
p.s.: interested in a German user group?