src/Model.php
public function markClean()
    {
        foreach ($this->__adapters as $model) {
            $model->markClean();
        }
        $annotations = $this->annotations()['properties'];
        foreach ($annotations as $prop => $anns) {
            if (isset($anns['Private']) || $prop{0} == '_') {
                continue;
            }
            $value = $this->$prop;
            if (is_object($value) and method_exists($value, 'markClean')) {
                $value->markClean();
            }
        }
        $this->__state = 'clean';
    }
public function markClean()
    {
        foreach ($this->__adapters as $model) {
            $model->markClean();
        }
        $annotations = $this->annotations()['properties'];
        foreach ($annotations as $prop => $anns) {
            if (isset($anns['Private']) || $prop{0} == '_') {
                continue;
            }
            $value = $this->$prop;
            if (is_object($value) and method_exists($value, 'markClean')) {
                $value->markClean();
            }
        }
        $this->__state = 'clean';
    }
public function markClean ( ) { foreach ( $ this -> __adapters as $ model ) { $ model -> markClean ( ) ; } $ annotations = $ this -> annotations ( ) [ 'properties' ] ; foreach ( $ annotations as $ prop => $ anns ) { if ( isset ( $ anns [ 'Private' ] ) || $ prop { 0 } == '_' ) { continue ; } $ value = $ this -> $ prop ; if ( is_object ( $ value ) and method_exists ( $ value , 'markClean' ) ) { $ value -> markClean ( ) ; } } $ this -> __state = 'clean' ; }
Mark the current model as 'clean', i.e. not dirty. Useful if you manually
set values after loading from storage that shouldn't count towards
"dirtiness". Called automatically after saving.

@return void
Mark the current model as clean i . e . not dirty . Useful if you manually set values after loading from storage that shouldn t count towards dirtiness . Called automatically after saving .