Path

ez components / documentation / api reference / 2007.1.1 / persistentobject


eZ Components 2007.1.1

PersistentObject: ezcPersistentOneToManyRelation

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcPersistentOneToManyRelation

Relation class to reflect a one-to-many table relation (1:n). [source]

Parents

ezcPersistentRelation
   |
   --ezcPersistentOneToManyRelation

Properties

bool read/write  $cascade
Wether to cascade delete action from the source table to the destination table.

Method Summary

protected void validateColumnMap( $columnMap )
Validates an ezcPersistentRelation::$columnMap property.

Inherited Methods

From ezcPersistentRelation :
public ezcPersistentRelation ezcPersistentRelation::__construct()
Create a new relation.
protected abstract void ezcPersistentRelation::validateColumnMap()
Validates an ezcPersistentRelation::$columnMap property.

Methods

validateColumnMap

void validateColumnMap( $columnMap )
Validates an ezcPersistentRelation::$columnMap property.
Checks is the given array represents a valid $columnMap property. Column maps for this kind of relation may only contain instances of ezcPersistentSingleTableMap and have to at least contain 1 instance.

Parameters

Name Type Description
$columnMap array The column map to check.

Throws

ClassDescription
ezcBaseValueException On an invalid column map.

Redefinition of

Method Description
ezcPersistentRelation::validateColumnMap() Validates an ezcPersistentRelation::$columnMap property.

Last updated: Wed, 28 Nov 2007