Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Lazer
Classes
Core_Relation
foreignKey
Lazer\Classes\Core_Relation::foreignKey PHP Method
Core_Relation Class Documentation
Show file
Open project: greg0/lazer-database
foreignKey()
public
method
Set foreign key name
public
foreignKey
(
string
$key
) :
Core_Relation
$key
string
key name
return
Core_Relation
public function foreignKey($key) { return $this->setKey('foreign', $key); }
Core_Relation
addRelation
belongsTo
build
deleteRelationData
foreignKey
getJunction
getRelation
hasAndBelongsToMany
hasMany
insertRelationData
join
localKey
relations
removeRelation
setKey
setRelation
setRelationType
setTable
table
with