Update DataModel
Mark the modifying flag of all dependent properties when modifying the main property. Virtual properties are also flagged.
This commit is contained in:
parent
d18aeff528
commit
79d068e8f0
1 changed files with 6 additions and 0 deletions
|
@ -130,6 +130,12 @@ class DataModel extends Model
|
|||
)
|
||||
) {
|
||||
$this->zModFlags[$name] = true;
|
||||
|
||||
if (isset($this->zDepend[$name])) {
|
||||
foreach ($this->zDepend[$name] as $dependent) {
|
||||
$this->zModFlags[$dependent] = true; //???? может только физические свойства менять?
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue