/** * 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()]; }
/** * 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()]; }