Forums / Developer / "relations" in definition function ... HOW ?!

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

"relations" in definition function ... HOW ?!

Author Message

Selmah Maxim

Saturday 09 August 2003 8:26:31 am

I need to make multi select or relations .. I found this in ezproductcollectionitem.php .. but I cann`t figure it out how to use .. I need some document about this ..plz !

"relations" => array( "contentobject_id" => array( "class" => "ezcontentobject",
"field" => "id" ),
"productcollection_id" => array( "class" => "ezproductcollection",
"field" => "id" ) ),

Piotrek Karaś

Thursday 26 November 2009 10:36:12 pm

Wow! This one has been awaiting response for a looong time ;)

Let's rephrase it: Is there any reason to use 'relations' key of the definition of a PHP class inhering from eZPersistentObject other than being able to insert NULL value in case of no relation?

Cheers,
Piotrek

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu