[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/doc/features/3.9/ -> foreign_key_definitions.txt (source)

   1  *Title: Foreign key definitions
   2  
   3  *Incentive: 
   4  
   5  Make it possible to create automated data integrity checks,
   6  and automatic data migration. By knowing the foreign key relations,
   7  automatic key translation will be possible across installations.
   8  
   9  
  10  *Documentation:
  11  
  12  For PHP classes extending eZPersistentObject, they must add to the definition()
  13  function, a few lines describing which fields are foreign keys.
  14  - foreign_class, foreign class name
  15  - foreign_attribute, foreign class key/field name
  16  - multiplicity, describes the number of relations with the foreign class/key
  17  
  18  *Example:
  19  
  20  In function definition():
  21  ...
  22  'foreign_class' => 'eZOrder',
  23  'foreign_attribute' => 'id',
  24  'multiplicity' => '1..*'


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7