_relations)) { $this->_relations[] = $property; } } /** * Mark am attribute as updated * overwritten from \OCP\AppFramework\Db\Entity to avoid writing relational attributes * @param string $attribute the name of the attribute * @since 7.0.0 */ protected function markFieldUpdated($attribute){ if(!in_array($attribute, $this->_relations)) { $this->_updatedFields[$attribute] = true; } } /** * overwritten from \OCP\AppFramework\Db\Entity to avoid writing relational attributes * @return array Array of field's update status */ public function getUpdatedFields(){ return $this->_updatedFields; } }