Changeset 5071
- Timestamp:
- 10/11/08 15:12:14 (17 months ago)
- Location:
- branches
- Files:
-
- 2 modified
-
1.0/lib/Doctrine/Query/Abstract.php (modified) (1 diff)
-
1.1/lib/Doctrine/Query/Abstract.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/lib/Doctrine/Query/Abstract.php
r5056 r5071 692 692 $i = ((int) substr($oldAlias, 1)); 693 693 694 if ($i == 0) { 695 $i = 1; 694 // Fix #1530: It was reaching unexistent seeds index 695 if ( ! isset($this->_tableAliasSeeds[$name])) { 696 $this->_tableAliasSeeds[$name] = 1; 696 697 } 697 698 698 $newIndex = ($this->_tableAliasSeeds[$name] + $i);699 $newIndex = ($this->_tableAliasSeeds[$name] + (($i == 0) ? 1 : $i)); 699 700 700 701 return $name . $newIndex; -
branches/1.1/lib/Doctrine/Query/Abstract.php
r5056 r5071 751 751 $i = ((int) substr($oldAlias, 1)); 752 752 753 if ($i == 0) { 754 $i = 1; 753 // Fix #1530: It was reaching unexistent seeds index 754 if ( ! isset($this->_tableAliasSeeds[$name])) { 755 $this->_tableAliasSeeds[$name] = 1; 755 756 } 756 757 757 $newIndex = ($this->_tableAliasSeeds[$name] + $i);758 $newIndex = ($this->_tableAliasSeeds[$name] + (($i == 0) ? 1 : $i)); 758 759 759 760 return $name . $newIndex;