PHP 클래스 Corcel\Model

상속: extends Illuminate\Database\Eloquent\Model
파일 보기 프로젝트 열기: jgrossi/corcel 1 사용 예제들

공개 메소드들

메소드 설명
belongsTo ( string $related, null $foreignKey = null, null $otherKey = null, null $relation = null ) : BelongsTo Replace the original belongsTo function to forward the connection name
belongsToMany ( string $related, null $table = null, null $foreignKey = null, null $otherKey = null, null $relation = null ) : Illuminate\Database\Eloquent\Relations\BelongsToMany Replace the original belongsToMany function to forward the connection name
getRelationValue ( string $key ) : mixed Get the relation value setting the connection name
hasMany ( string $related, null $foreignKey = null, null $localKey = null ) : Illuminate\Database\Eloquent\Relations\HasMany Replace the original hasMany function to forward the connection name
hasOne ( string $related, null $foreignKey = null, null $localKey = null ) : Illuminate\Database\Eloquent\Relations\HasOne Replace the original hasOne function to forward the connection name

보호된 메소드들

메소드 설명
setRelationConnection ( $model ) Set the connection name to model

메소드 상세

belongsTo() 공개 메소드

Replace the original belongsTo function to forward the connection name
public belongsTo ( string $related, null $foreignKey = null, null $otherKey = null, null $relation = null ) : BelongsTo
$related string
$foreignKey null
$otherKey null
$relation null
리턴 Illuminate\Database\Eloquent\Relations\BelongsTo

belongsToMany() 공개 메소드

Replace the original belongsToMany function to forward the connection name
public belongsToMany ( string $related, null $table = null, null $foreignKey = null, null $otherKey = null, null $relation = null ) : Illuminate\Database\Eloquent\Relations\BelongsToMany
$related string
$table null
$foreignKey null
$otherKey null
$relation null
리턴 Illuminate\Database\Eloquent\Relations\BelongsToMany

getRelationValue() 공개 메소드

Get the relation value setting the connection name
public getRelationValue ( string $key ) : mixed
$key string
리턴 mixed

hasMany() 공개 메소드

Replace the original hasMany function to forward the connection name
public hasMany ( string $related, null $foreignKey = null, null $localKey = null ) : Illuminate\Database\Eloquent\Relations\HasMany
$related string
$foreignKey null
$localKey null
리턴 Illuminate\Database\Eloquent\Relations\HasMany

hasOne() 공개 메소드

Replace the original hasOne function to forward the connection name
public hasOne ( string $related, null $foreignKey = null, null $localKey = null ) : Illuminate\Database\Eloquent\Relations\HasOne
$related string
$foreignKey null
$localKey null
리턴 Illuminate\Database\Eloquent\Relations\HasOne

setRelationConnection() 보호된 메소드

Set the connection name to model
protected setRelationConnection ( $model )
$model