$foreignTable
$foreignTable : string
Foreign table class
Relationship class for "has one of" relationships
$parent : \Pop\Db\Record
Parent record
__construct(\Pop\Db\Record $parent, string $foreignTable, string $foreignKey)
Constructor
Instantiate the relationship object
\Pop\Db\Record | $parent | |
string | $foreignTable | |
string | $foreignKey |
getParent() : \Pop\Db\Record
Get parent record
getChild() : \Pop\Db\Record
Get child