\Ceo\Core\ModelsLockRequest

Base model methods

Summary

Methods
Properties
Constants
getResultsetClass()
hasProperty()
setRelated()
initialize()
getSource()
find()
findFirst()
toArray()
$id
$uuid
$srn
$user_id
$state
$created_at
$modified_at
No constants found
toArrayRelated()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$id

$id : integer

ID

Type

integer

$uuid

$uuid : string

UUID

Type

string

$srn

$srn : string

Parent SRN

Type

string

$user_id

$user_id : integer

Locking User's ID

Type

integer

$state

$state : string

State

Type

string

$created_at

$created_at : string

Created time

Type

string

$modified_at

$modified_at : string

Modified time

Type

string

Methods

getResultsetClass()

getResultsetClass() 

hasProperty()

hasProperty(string  $str) : boolean

Determine if the model has a public property.

Useful in determining valid sorting options on the front end.

Parameters

string $str

Property

Returns

boolean

setRelated()

setRelated(string  $relation, mixed  $value = array()) : self

Phalcon has this bug where if you enumerate a relation then try to set it via the magic setter, it won't save.

I think it has something to do with implicit transactions, but I'm not entirely sure...

Parameters

string $relation
mixed $value

Returns

self

initialize()

initialize() 

Initialize method for model.

getSource()

getSource() : string

Returns table name mapped in the model.

Returns

string

find()

find(mixed  $parameters = null) : array<mixed,\Ceo\Core\Models\Lockrequest>

Allows to query a set of records that match the specified conditions

Parameters

mixed $parameters

Returns

array<mixed,\Ceo\Core\Models\Lockrequest>

findFirst()

findFirst(mixed  $parameters = null) : \Ceo\Core\Models\Lockrequest

Allows to query the first record that match the specified conditions

Parameters

mixed $parameters

Returns

\Ceo\Core\Models\Lockrequest

toArray()

toArray(array  $opts = false) : array

Array override

Parameters

array $opts

Options for generation

Returns

array

toArrayRelated()

toArrayRelated(  $ops,   $array) 

Parameters

$ops
$array