$id
$id : integer
Assignment ID
Assignment model. Assignments act as containers for multiple content items.
Assignments can also have a due date in additional to regular publish info.
setPushableOptions(array $opts = array())
Set default pushable options for model, uses an array with the keys
Example:
class Content extends BaseModel
{
use Pushable;
...
$this->setPushableOptions([
'category' => 'contentupdate',
'related' => [
'export',
'authors',
'tags',
'assignment',
'attachment',
'audit',
'export',
'dominantAttachment'
]
]
}
array | $opts |
pushToSocket(array $kwargs = array())
Push the model to the web socket server via the queue service Options are set as keyword arguments in the form of <ul> <li>category - (string) supplemental category</li> <li>options - (array) override options, see setPushableOptions for more info</li> </ul>
array | $kwargs |
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...
string | $relation | |
mixed | $value |
find(mixed $parameters = null) : array<mixed,\Ceo\Core\Models\Assignment>
Allows to query a set of records that match the specified conditions
mixed | $parameters |
findFirst(mixed $parameters = null) : \Ceo\Core\Models\Assignment
Allows to query the first record that match the specified conditions
mixed | $parameters |