@@ 1384-1391 (lines=8) @@ | ||
1381 | { |
|
1382 | $writer = $toolbox->getWriter(); |
|
1383 | ||
1384 | if ( $this->via ) { |
|
1385 | $oldName = $writer->getAssocTable( array( $this->__info['type'], $type ) ); |
|
1386 | if ( $oldName !== $this->via ) { |
|
1387 | //set the new renaming rule |
|
1388 | $writer->renameAssocTable( $oldName, $this->via ); |
|
1389 | } |
|
1390 | $this->via = NULL; |
|
1391 | } |
|
1392 | ||
1393 | $beans = array(); |
|
1394 | if ($this->getID()) { |
|
@@ 2809-2817 (lines=9) @@ | ||
2806 | $redbean = $toolbox->getRedBean(); |
|
2807 | $writer = $toolbox->getWriter(); |
|
2808 | ||
2809 | if ( $this->via ) { |
|
2810 | $oldName = $writer->getAssocTable( array( $this->__info['type'], $type ) ); |
|
2811 | ||
2812 | if ( $oldName !== $this->via ) { |
|
2813 | //set the new renaming rule |
|
2814 | $writer->renameAssocTable( $oldName, $this->via ); |
|
2815 | $this->via = NULL; |
|
2816 | } |
|
2817 | } |
|
2818 | ||
2819 | $type = $this->beau( $type ); |
|
2820 | $count = 0; |