$foreignTable
$foreignTable : string
Foreign table class
Relationship class for "has one" 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(array $options = null) : \Pop\Db\Record
Get child
| array | $options |