webCOMAND

Content::save()

Save the object and its embedded objects to the repository as a draft version of the object.  All saved draft versions will remain in the repository until approve() is called, which replaces all drafts saved up to the approve with a single final approved version.

Prototype

boolean save(array $options = [])

Parameters

Return

TRUE if the object draft was created in the repository.  Otherwise, FALSE.

Example

$repo = \comand::repo();
$contact = $repo->get('FROM Contact LIMIT 1');
$contact->FirstName = 'Jane';
$contact->save();