Relation class to reflect a many-to-one table relation (m:1).
Source for this file: /PersistentObject/src/relations/many_to_one.php
ezcPersistentRelation | --ezcPersistentManyToOneRelation
Version: | //autogen// |
bool | read/write |
$cascade
Wether to cascade delete action from the source table to the destination table. |
From ezcPersistentRelation | |
---|---|
protected |
ezcPersistentRelation::$properties
|
public static void |
__set_state(
$state
)
Sets the state after importing an exported object. |
public ezcPersistentManyToOneRelation |
__construct(
$sourceTable
, $destinationTable
)
Create a new relation. |
protected void |
validateColumnMap(
$columnMap
)
Validates an ezcPersistentRelation::$columnMap property. |
From ezcPersistentRelation | |
---|---|
public ezcPersistentRelation |
ezcPersistentRelation::__construct()
Create a new relation. |
protected abstract void |
ezcPersistentRelation::validateColumnMap()
Validates an ezcPersistentRelation::$columnMap property. |
Sets the state after importing an exported object.
Name | Type | Description |
---|---|---|
$state |
array |
Create a new relation.
Name | Type | Description |
---|---|---|
$sourceTable |
string | See property $sourceTable |
$destinationTable |
string | See property $destinationTable |
Method | Description |
---|---|
ezcPersistentRelation::__construct() |
Create a new relation. |
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.
Name | Type | Description |
---|---|---|
$columnMap |
array | The column map to check. |
Type | Description |
---|---|
ezcBaseValueException |
On an invalid column map. |
Method | Description |
---|---|
ezcPersistentRelation::validateColumnMap() |
Validates an ezcPersistentRelation::$columnMap property. |