Méthode | Description | |
---|---|---|
__construct ( |
Public constructor. Initialises the relation. | |
getNew ( ) | This is not supported by the belongsTo relation |
public __construct ( |
||
$parentModel | The data model we are attached to | |
$foreignModelName | string | The name of the foreign key's model in the format "modelName@com_something" |
$localKey | string | The local table key for this relation, default: parentModel's ID field name |
$foreignKey | string | The foreign key for this relation, default: parentModel's ID field name |
$pivotTable | string | IGNORED |
$pivotLocalKey | string | IGNORED |
$pivotForeignKey | string | IGNORED |