PersistentObject: ezcPersistentRelation
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcPersistentRelation
|
Base class for all relation definition classes of PersistentObject. [
source]
Descendents
Properties
|
array |
read/write
|
$columnMap
The table mapping this instance reflects. |
|
string |
read/write
|
$destinationTable
The destination table this relation maps to. |
|
bool |
read/write
|
$reverse
Wether this relation is a reverse of an existing relation. |
|
string |
read/write
|
$sourceTable
The source table this relation maps from. |
Method Summary
|
public ezcPersistentRelation |
__construct(
$sourceTable, $destinationTable )
Create a new relation. |
|
protected abstract void |
validateColumnMap(
$columnMap )
Validates an ezcPersistentRelation::$columnMap property. |
Methods
__construct
ezcPersistentRelation __construct(
string
$sourceTable, string
$destinationTable )
Create a new relation.
Parameters
| Name |
Type |
Description |
$sourceTable |
string |
See property $sourceTable |
$destinationTable |
string |
See property $destinationTable |
Redefined in descendants as
validateColumnMap
void validateColumnMap(
$columnMap )
Validates an ezcPersistentRelation::$columnMap property.
Checks is the given array represents a valid $columnMap property. Has to be implemented by all derived classes.
Parameters
| Name |
Type |
Description |
$columnMap |
array |
The column map to check. |
Throws
| Class | Description |
ezcBaseValueException |
On an invalid column map. |
Redefined in descendants as
Last updated: Thu, 01 Nov 2007