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
LazyRecord
Schema
DeclareSchema
getPrimaryKey
LazyRecord\Schema\DeclareSchema::getPrimaryKey PHP Method
DeclareSchema Class Documentation
Show file
Open project: corneltek/lazyrecord
getPrimaryKey()
public
method
Get the primary key column name.
public
getPrimaryKey
( ) :
string
return
string
primary key column name
public function getPrimaryKey() { return $this->primaryKey; }
DeclareSchema
__construct
__toString
_classnameToTable
_modelClassToLabel
addCollectionInterface
addCollectionTrait
addColumn
addModelInterface
addModelTrait
addSeed
belongsTo
build
column
disableColumnAccessors
dump
export
findPrimaryKey
findPrimaryKeyColumn
getClassFileName
getClassName
getCollectionInterfaces
getCollectionTraitClasses
getColumn
getColumnLabels
getColumnNames
getColumns
getCurrentSchemaClass
getDirectory
getIndexQueries
getLabel
getModelClass
getModelInterfaces
getModelTraitClasses
getModificationTime
getMsgIds
getPrimaryKey
getReadSourceId
getRelatedClassPath
getShortClassName
getTable
getWriteSourceId
hasColumn
hasMany
hasOne
helper
index
insertAutoIdPrimaryColumn
insertColumn
isNewerThanFile
label
many
manyToMany
mixin
onDelete
onUpdate
readFrom
removeColumn
requireProxyFileUpdate
resolveSchemaClass
schema
seeds
table
using
writeTo