PersistentObject: ezcPersistentManyToOneRelation
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcPersistentManyToOneRelation
|
Relation class to reflect a many-to-one table relation (m:1). [
source]
Parents
ezcPersistentRelation
|
--ezcPersistentManyToOneRelation
Properties
|
bool |
read/write
|
$cascade
Wether to cascade delete action from the source table to the destination table. |
Inherited Member Variables
From
ezcPersistentRelation:
Method Summary
|
public ezcPersistentManyToOneRelation |
__construct(
$sourceTable, $destinationTable )
Create a new relation. |
|
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
ezcPersistentManyToOneRelation __construct(
string
$sourceTable, string
$destinationTable )
Create a new relation.
Parameters
| Name |
Type |
Description |
$sourceTable |
string |
See property $sourceTable |
$destinationTable |
string |
See property $destinationTable |
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
ezcPersistentSingleTableMap 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, 21 Dec 2009