コード例 #1
0
ファイル: AbstractModel.php プロジェクト: as3io/modlr
 /**
  * Determines if the model is currently dirty.
  *
  * @api
  * @return  bool
  */
 public function isDirty()
 {
     return true === $this->attributes->areDirty() || true === $this->hasOneEmbeds->areDirty() || true === $this->hasManyEmbeds->areDirty();
 }
コード例 #2
0
ファイル: Model.php プロジェクト: actinoids/modlr-rest-odm
 /**
  * Determines if the model is currently dirty.
  * Checks against the attribute and relationship dirty states.
  *
  * @api
  * @return  bool
  */
 public function isDirty()
 {
     return true === $this->attributes->areDirty() || true === $this->hasOneRelationships->areDirty() || true === $this->hasManyRelationships->areDirty();
 }