コード例 #1
0
ファイル: AbstractModel.php プロジェクト: as3io/modlr
 /**
  * Gets the current change set of properties.
  *
  * @api
  * @return  array
  */
 public function getChangeSet()
 {
     return ['attributes' => $this->filterNotSavedProperties($this->attributes->calculateChangeSet()), 'embedOne' => $this->hasOneEmbeds->calculateChangeSet(), 'embedMany' => $this->hasManyEmbeds->calculateChangeSet()];
 }
コード例 #2
0
ファイル: Model.php プロジェクト: actinoids/modlr-rest-odm
 /**
  * Gets the current change set of attributes and relationships.
  *
  * @api
  * @return  array
  */
 public function getChangeSet()
 {
     return ['attributes' => $this->attributes->calculateChangeSet(), 'hasOne' => $this->hasOneRelationships->calculateChangeSet(), 'hasMany' => $this->hasManyRelationships->calculateChangeSet()];
 }