Method | Description | |
---|---|---|
belongsTo ( string $related, string $foreignKey = null, string $otherKey = null, string $relation = null ) : |
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. |
Method | Description | |
---|---|---|
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. |
protected asDateTime ( DateTime $value ) : DateTime | ||
$value | DateTime | |
return | DateTime |
public fromDateTime ( DateTime $value ) : string | ||
$value | DateTime | |
return | string |
protected getDateFormat ( ) : string | ||
return | string |
public getQualifiedKeyName ( ) : string | ||
return | string |
protected newBaseQueryBuilder ( ) : Builder | ||
return | Builder |
public newEloquentBuilder ( duxet\Rethinkdb\Query\Builder $query ) : duxet\Rethinkdb\Eloquent\Builder | static | ||
$query | duxet\Rethinkdb\Query\Builder | |
return | duxet\Rethinkdb\Eloquent\Builder | static |
protected originalIsNumericallyEquivalent ( string $key ) : boolean | ||
$key | string | |
return | boolean |