\Pop\Db\Record\RelationshipsAbstractRelationship

Relationship class for "has one" relationships

Summary

Methods
Properties
Constants
__construct()
getForeignTable()
getForeignKey()
getEagerRelationships()
No public properties found
No constants found
No protected methods found
$foreignTable
$foreignKey
N/A
No private methods found
No private properties found
N/A

Properties

$foreignTable

$foreignTable : string

Foreign table class

Type

string

$foreignKey

$foreignKey : string

Foreign key

Type

string

Methods

__construct()

__construct(string  $foreignTable, string  $foreignKey) 

Constructor

Instantiate the relationship object

Parameters

string $foreignTable
string $foreignKey

getForeignTable()

getForeignTable() : string

Get foreign table class

Returns

string

getForeignKey()

getForeignKey() : string

Get foreign key

Returns

string

getEagerRelationships()

getEagerRelationships(array  $ids) : array

Get eager relationships

Parameters

array $ids

Throws

\Pop\Db\Record\Relationships\Exception

Returns

array