public findAndModify ( array $condition, array $update, array $options = [] ) : array | null | ||
$condition | array | query condition |
$update | array | update criteria |
$options | array | list of options in format: optionName => optionValue. |
Résultat | array | null | the original document, or the modified document when $options['new'] is set. |