RedBeanModelRelationToColumnAdapter Class Reference

Static Public Member Functions

static resolvePolymorphicColumnsByTableName ($tableName)
static resolve ($modelClassName, $relationName, array $relationMetadata, &$messageLogger)

Data Fields

const CACHE_KEY = 'RedBeanModelRelationToColumnAdapter_polymorphicColumns'

Static Protected Member Functions

static setColumnsForPolymorphicLink ($relatedModelClassName, $linkName)
static resolvePolymorphicTypeColumnByLinkName ($linkName)

Detailed Description

Adapter class to generate column definition when provided with relationMetadata

Definition at line 40 of file RedBeanModelRelationToColumnAdapter.php.


Member Function Documentation

static resolvePolymorphicColumnsByTableName ( tableName  )  [static]

Return column definition for any polymorphic relationships to provided tableName

Parameters:
string $tableName
Returns:
null|array

Definition at line 52 of file RedBeanModelRelationToColumnAdapter.php.

static resolve ( modelClassName,
relationName,
array $  relationMetadata,
&$  messageLogger 
) [static]

Generates a column definition or processes junctions table depending on relation and link type.

Parameters:
string $modelClassName
string $relationName
array $relationMetadata
$messageLogger 
Returns:
array|null

Definition at line 70 of file RedBeanModelRelationToColumnAdapter.php.


Field Documentation

const CACHE_KEY = 'RedBeanModelRelationToColumnAdapter_polymorphicColumns'

Key to cache polymorphic columns for tables

Definition at line 45 of file RedBeanModelRelationToColumnAdapter.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun Mar 26 07:10:28 2017