Oihana PHP System

UpdateDateModel

Update a single date property in a document with the current date.

Tags
author

Marc Alcaraz (ekameleon)

since
1.0.0

Table of Contents

Methods

updateDate()  : mixed
Update a single date property in a document with the current date .

Methods

updateDate()

Update a single date property in a document with the current date .

public updateDate([array<string|int, mixed> $init = [] ][, string $property = Schema::MODIFIED ]) : mixed

By default, it updates the modified property with the current timestamp.

Parameters
$init : array<string|int, mixed> = []

Additional options like value, binds, return clause, etc.

$property : string = Schema::MODIFIED

The document property to update (default: Schema::MODIFIED).


        
On this page

Search results