webCOMAND

Content::store()

Save the object and its embedded objects to the repository as a working copy.  Any fields locked by another user will not be updated.

Prototype

store(array $options = []): boolean

Parameters

  • options - See approve() options, except the SkipValidation option does not apply because store does not validate.

Return

TRUE if the object working copy was updated in the repository.  Otherwise, FALSE.

Example

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