PHP Class Yajra\Oci8\Eloquent\OracleEloquent

Inheritance: extends Illuminate\Database\Eloquent\Model
Exibir arquivo Open project: yajra/laravel-oci8 Class Usage Examples

Protected Properties

Property Type Description
$binaries array List of binary (blob) columns.
$binaryFields array List of binary fields for storage.
$sequence string Sequence name variable

Public Methods

Method Description
getQualifiedKeyName ( ) : string Get the table qualified key name.
getSequenceName ( ) : string Get model's sequence name
setSequenceName ( string $name ) Set sequence name.
update ( array $attributes = [], array $options = [] ) : boolean | integer Update the model in the database.

Protected Methods

Method Description
checkBinary ( array $attributes ) : boolean Check if attributes contains binary field.
extractBinaries ( array &$attributes ) : array Extract binary fields from given attributes.
insertAndSetId ( Builder $query, array $attributes ) : integer | void Insert the given attributes and set the ID on the model.
newBaseQueryBuilder ( ) : Builder | OracleBuilder Get a new query builder instance for the connection.
performInsert ( Builder $query, array $options = [] ) : boolean Perform a model insert operation.
performUpdate ( Builder $query, array $options = [] ) : boolean Perform a model update operation.
updateBinary ( Builder $query, array $dirty, array $options = [] ) Update model with binary (blob) fields.

Method Details

checkBinary() protected method

Check if attributes contains binary field.
protected checkBinary ( array $attributes ) : boolean
$attributes array
return boolean

extractBinaries() protected method

Extract binary fields from given attributes.
protected extractBinaries ( array &$attributes ) : array
$attributes array
return array

getQualifiedKeyName() public method

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

getSequenceName() public method

Get model's sequence name
public getSequenceName ( ) : string
return string

insertAndSetId() protected method

Insert the given attributes and set the ID on the model.
protected insertAndSetId ( Builder $query, array $attributes ) : integer | void
$query Illuminate\Database\Eloquent\Builder
$attributes array
return integer | void

newBaseQueryBuilder() protected method

Get a new query builder instance for the connection.
protected newBaseQueryBuilder ( ) : Builder | OracleBuilder
return Illuminate\Database\Query\Builder | yajra\Oci8\Query\OracleBuilder

performInsert() protected method

Perform a model insert operation.
protected performInsert ( Builder $query, array $options = [] ) : boolean
$query Illuminate\Database\Eloquent\Builder
$options array
return boolean

performUpdate() protected method

Perform a model update operation.
protected performUpdate ( Builder $query, array $options = [] ) : boolean
$query Illuminate\Database\Eloquent\Builder
$options array
return boolean

setSequenceName() public method

Set sequence name.
public setSequenceName ( string $name )
$name string

update() public method

Update the model in the database.
public update ( array $attributes = [], array $options = [] ) : boolean | integer
$attributes array
$options array
return boolean | integer

updateBinary() protected method

Update model with binary (blob) fields.
protected updateBinary ( Builder $query, array $dirty, array $options = [] )
$query Illuminate\Database\Eloquent\Builder
$dirty array
$options array

Property Details

$binaries protected_oe property

List of binary (blob) columns.
protected array $binaries
return array

$binaryFields protected_oe property

List of binary fields for storage.
protected array $binaryFields
return array

$sequence protected_oe property

Sequence name variable
protected string $sequence
return string