LMongo\Eloquent\Model::freshTimestamp PHP Method

freshTimestamp() public method

Get a fresh MongoDate for the model.
public freshTimestamp ( ) : MongoDate
return MongoDate
    public function freshTimestamp()
    {
        return new MongoDate();
    }

Usage Example

コード例 #1
0
ファイル: Builder.php プロジェクト: navruzm/lmongo
 /**
  * Soft delete the record in the database.
  *
  * @return int
  */
 protected function softDelete()
 {
     $column = $this->model->getDeletedAtColumn();
     return $this->update(array($column => $this->model->freshTimestamp()));
 }
Model