PHP Класс duxet\Rethinkdb\Eloquent\Model

Наследование: extends Illuminate\Database\Eloquent\Model
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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