PHP 클래스 duxet\Rethinkdb\Eloquent\Model

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

공개 메소드들

메소드 설명
belongsTo ( string $related, string $foreignKey = null, string $otherKey = null, string $relation = null ) : BelongsTo Define an inverse one-to-one or many relationship.
fromDateTime ( DateTime $value ) : string Retain DateTime format for storage.
getQualifiedKeyName ( ) : string Get the table qualified key name.
hasMany ( string $related, string $foreignKey = null, string $localKey = null ) : Illuminate\Database\Eloquent\Relations\HasMany Define a one-to-many relationship.
hasOne ( string $related, string $foreignKey = null, string $localKey = null ) : Illuminate\Database\Eloquent\Relations\HasOne Define a one-to-one relationship.
newEloquentBuilder ( duxet\Rethinkdb\Query\Builder $query ) : duxet\Rethinkdb\Eloquent\Builder | static Create a new Eloquent query builder for the model.

보호된 메소드들

메소드 설명
asDateTime ( DateTime $value ) : DateTime Ensure Timestamps are returned in DateTime.
getDateFormat ( ) : string Get the format for database stored dates.
newBaseQueryBuilder ( ) : Builder Get a new query builder instance for the connection.
originalIsNumericallyEquivalent ( string $key ) : boolean Determine if the new and old values for a given key are numerically equivalent.

메소드 상세

asDateTime() 보호된 메소드

Ensure Timestamps are returned in DateTime.
protected asDateTime ( DateTime $value ) : DateTime
$value DateTime
리턴 DateTime

belongsTo() 공개 메소드

Define an inverse one-to-one or many relationship.
public belongsTo ( string $related, string $foreignKey = null, string $otherKey = null, string $relation = null ) : BelongsTo
$related string
$foreignKey string
$otherKey string
$relation string
리턴 Illuminate\Database\Eloquent\Relations\BelongsTo

fromDateTime() 공개 메소드

Retain DateTime format for storage.
public fromDateTime ( DateTime $value ) : string
$value DateTime
리턴 string

getDateFormat() 보호된 메소드

Get the format for database stored dates.
protected getDateFormat ( ) : string
리턴 string

getQualifiedKeyName() 공개 메소드

Get the table qualified key name.
public getQualifiedKeyName ( ) : string
리턴 string

hasMany() 공개 메소드

Define a one-to-many relationship.
public hasMany ( string $related, string $foreignKey = null, string $localKey = null ) : Illuminate\Database\Eloquent\Relations\HasMany
$related string
$foreignKey string
$localKey string
리턴 Illuminate\Database\Eloquent\Relations\HasMany

hasOne() 공개 메소드

Define a one-to-one relationship.
public hasOne ( string $related, string $foreignKey = null, string $localKey = null ) : Illuminate\Database\Eloquent\Relations\HasOne
$related string
$foreignKey string
$localKey string
리턴 Illuminate\Database\Eloquent\Relations\HasOne

newBaseQueryBuilder() 보호된 메소드

Get a new query builder instance for the connection.
protected newBaseQueryBuilder ( ) : Builder
리턴 Builder

newEloquentBuilder() 공개 메소드

Create a new Eloquent query builder for the model.
public newEloquentBuilder ( duxet\Rethinkdb\Query\Builder $query ) : duxet\Rethinkdb\Eloquent\Builder | static
$query duxet\Rethinkdb\Query\Builder
리턴 duxet\Rethinkdb\Eloquent\Builder | static

originalIsNumericallyEquivalent() 보호된 메소드

Determine if the new and old values for a given key are numerically equivalent.
protected originalIsNumericallyEquivalent ( string $key ) : boolean
$key string
리턴 boolean