getUpdatedAtColumn() public method

Get the name of the "updated at" column.
public getUpdatedAtColumn ( ) : string
return string
コード例 #1
0
ファイル: Builder.php プロジェクト: navruzm/lmongo
 /**
  * Add the "updated at" column to an array of values.
  *
  * @param  array  $values
  * @return array
  */
 protected function addUpdatedAtColumn(array $values)
 {
     if (!$this->model->usesTimestamps()) {
         return $values;
     }
     $column = $this->model->getUpdatedAtColumn();
     return array_add($values, $column, $this->model->freshTimestamp());
 }
コード例 #2
0
ファイル: Relation.php プロジェクト: navruzm/lmongo
 /**
  * Get the name of the related model's "updated at" column.
  *
  * @return string
  */
 public function relatedUpdatedAt()
 {
     return $this->related->getUpdatedAtColumn();
 }
コード例 #3
0
ファイル: Relation.php プロジェクト: shershams/lmongo
 /**
  * Get the name of the "updated at" column.
  *
  * @return string
  */
 public function updatedAt()
 {
     return $this->parent->getUpdatedAtColumn();
 }