public function getDirtyRelations()
    {
        $dirtyRelations = [];
        foreach ($this->_relations as $relationName) {
            if (array_key_exists($relationName, $this->_oldRelationValue)) {
                $dirtyRelations[$relationName] = $this->owner->{$relationName};
            }
        }
        return $dirtyRelations;
    }
public function getDirtyRelations()
    {
        $dirtyRelations = [];
        foreach ($this->_relations as $relationName) {
            if (array_key_exists($relationName, $this->_oldRelationValue)) {
                $dirtyRelations[$relationName] = $this->owner->{$relationName};
            }
        }
        return $dirtyRelations;
    }
public function getDirtyRelations ( ) { $ dirtyRelations = [ ] ; foreach ( $ this -> _relations as $ relationName ) { if ( array_key_exists ( $ relationName , $ this -> _oldRelationValue ) ) { $ dirtyRelations [ $ relationName ] = $ this -> owner -> { $ relationName } ; } } return $ dirtyRelations ; }
Returns the relations that have been modified since they are loaded.
@return array The changed relations (name-value pairs)
Returns the relations that have been modified since they are loaded .