Changeset 3783
- Timestamp:
- 02/15/08 15:07:47 (17 months ago)
- Files:
-
- 3 modified
-
branches/0.10/lib/Doctrine/Query/Condition.php (modified) (1 diff)
-
branches/0.9/lib/Doctrine/Query/Condition.php (modified) (1 diff)
-
trunk/lib/Doctrine/Query/Condition.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.10/lib/Doctrine/Query/Condition.php
r3245 r3783 64 64 $r = implode(' OR ', $ret); 65 65 } else { 66 // Fix for #710 66 67 if (substr($parts[0],0,1) == '(' && substr($parts[0], -1) == ')') { 67 68 return $this->parse(substr($parts[0], 1, -1)); 68 69 } else { 69 return $this->load($parts[0]); 70 // Processing NOT here 71 if (strtoupper(substr($parts[0], 0, 4)) === 'NOT ') { 72 $r = 'NOT ('.$this->parse(substr($parts[0], 4)).')'; 73 } else { 74 return $this->load($parts[0]); 75 } 70 76 } 71 77 } -
branches/0.9/lib/Doctrine/Query/Condition.php
r3032 r3783 64 64 $r = implode(' OR ', $ret); 65 65 } else { 66 // Fix for #710 66 67 if (substr($parts[0],0,1) == '(' && substr($parts[0], -1) == ')') { 67 68 return $this->parse(substr($parts[0], 1, -1)); 68 69 } else { 69 return $this->load($parts[0]); 70 // Processing NOT here 71 if (strtoupper(substr($parts[0], 0, 4)) === 'NOT ') { 72 $r = 'NOT ('.$this->parse(substr($parts[0], 4)).')'; 73 } else { 74 return $this->load($parts[0]); 75 } 70 76 } 71 77 } -
trunk/lib/Doctrine/Query/Condition.php
r3570 r3783 64 64 $r = implode(' OR ', $ret); 65 65 } else { 66 // Fix for #710 66 67 if (substr($parts[0],0,1) == '(' && substr($parts[0], -1) == ')') { 67 68 return $this->parse(substr($parts[0], 1, -1)); 68 69 } else { 69 return $this->load($parts[0]); 70 // Processing NOT here 71 if (strtoupper(substr($parts[0], 0, 4)) === 'NOT ') { 72 $r = 'NOT ('.$this->parse(substr($parts[0], 4)).')'; 73 } else { 74 return $this->load($parts[0]); 75 } 70 76 } 71 77 }