Draft
class Draft extends BaseModel
Drafts model
Drafts are intended to be non-durable and could be purged at any time. Drafts should not be relied upon to be a replacement for versioning.
Properties
integer | $id | ID | |
integer | $version | This version | |
string | $content | Parent content | |
string | $content_raw | Parent content object | |
string | $created_at | Parent created_at | |
integer | $content_id | Parent content ID | |
integer | $user_id | Editing user ID |
Methods
Phalcon has this bug where if you enumerate a relation then try to set it via the magic setter, it won't save.
Initializer
Returns table name mapped in the model.
Allows to query a set of records that match the specified conditions
Allows to query the first record that match the specified conditions
No description
Details
in BaseModel at line line 13
getResultsetClass()
in BaseModel at line line 25
boolean
hasProperty(string $str)
Determine if the model has a public property.
Useful in determining valid sorting options on the front end.
in BaseModel at line line 40
BaseModel
setRelated(string $relation, mixed $value = array())
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...
at line line 65
Draft
initialize()
Initializer
at line line 100
string
getSource()
Returns table name mapped in the model.
at line line 111
static Versions[]
find(mixed $parameters = null)
Allows to query a set of records that match the specified conditions
at line line 122
static Versions
findFirst(mixed $parameters = null)
Allows to query the first record that match the specified conditions