PersistentObject: ezcPersistentManyToManyRelation
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcPersistentManyToManyRelation
|
Relation class to reflect a many-to-many table relation (m:n). [
source]
Parents
ezcPersistentRelation
|
--ezcPersistentManyToManyRelation
Inherited Member Variables
From
ezcPersistentRelation:
Method Summary
|
public ezcPersistentManyToManyRelation |
__construct(
$sourceTable, $destinationTable, $relationTable )
Constructs a new many to many relation from the table $sourceTable to the table $destinationTable via $relationTable |
|
protected void |
validateColumnMap(
$columnMap )
Validates an ezcPersistentRelation::$columnMap property. |
|
public static void |
__set_state(
$state )
Sets the state after importing an exported object. |
Inherited Methods
From
ezcPersistentRelation :
Methods
__construct
ezcPersistentManyToManyRelation __construct(
string
$sourceTable, string
$destinationTable, string
$relationTable )
Constructs a new many to many relation from the table $sourceTable to the table $destinationTable via $relationTable
Parameters
| Name |
Type |
Description |
$sourceTable |
string |
|
$destinationTable |
string |
|
$relationTable |
string |
|
Redefinition of
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
ezcPersistentDoubleTableMap and have to at least contain 1 instance.
Parameters
| Name |
Type |
Description |
$columnMap |
array |
The column map to check. |
Throws
| Class | Description |
ezcBaseValueException |
On an invalid column map. |
Redefinition of
__set_state
void __set_state(
$state )
Sets the state after importing an exported object.
Parameters
| Name |
Type |
Description |
$state |
array |
|
Last updated: Mon, 29 Jun 2009