comparison Lib/IMPL/DOM/Node.pm @ 38:d660fb38b7cc

small fixes ORM shema to SQL schema transformation
author Sergey
date Mon, 23 Nov 2009 17:57:07 +0300
parents c2e7f7c96bcd
children 16ada169ca75
comparison
equal deleted inserted replaced
37:c2e7f7c96bcd 38:d660fb38b7cc
206 my ($this) = @_; 206 my ($this) = @_;
207 207
208 # this method is called by the parent node on his children, so we need no to check parent 208 # this method is called by the parent node on his children, so we need no to check parent
209 $this->{$document} = $this->{$parentNode}->document; 209 $this->{$document} = $this->{$parentNode}->document;
210 210
211 # prevetn ciclyc 211 # prevent cyclic
212 weaken($this->{$document}) if $this->{$document}; 212 weaken($this->{$document}) if $this->{$document};
213 213
214 $_->_updateDocRefs foreach @{$this->{$childNodes}}; 214 $_->_updateDocRefs foreach @{$this->{$childNodes}};
215 } 215 }
216 216