$foreignTable
$foreignTable : string
Foreign table class
Relationship class for "belongs to" relationships
$child : \Pop\Db\Record
Child record
__construct(\Pop\Db\Record $child, string $foreignTable, string $foreignKey)
Constructor
Instantiate the relationship object
\Pop\Db\Record | $child | |
string | $foreignTable | |
string | $foreignKey |
getChild() : \Pop\Db\Record
Get child record
getParent(array $options = null) : \Pop\Db\Record
Get parent
array | $options |