LMongo\Eloquent\Model::freshTimestamp PHP 메소드

freshTimestamp() 공개 메소드

Get a fresh MongoDate for the model.
public freshTimestamp ( ) : MongoDate
리턴 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