Changeset 1401
- Timestamp:
- 09/06/09 11:03:53 (11 months ago)
- Files:
-
- trunk/lib/AkActiveRecord.php (modified) (1 diff)
- trunk/lib/AkActiveRecord/AkAssociatedActiveRecord.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/AkActiveRecord.php
r1399 r1401 1329 1329 $values = join(', ', $this->castAttributesForDatabase($_tmp_parts[0], $query_values[$parameter_count])); 1330 1330 if(!empty($values)){ 1331 $new_sql .= $_tmp_parts[0].' IN ('.$values.') ';1331 $new_sql .= $_tmp_parts[0].' IN ('.$values.') '; 1332 1332 }else{ 1333 1333 $new_sql = preg_replace('/(AND|OR) $/','', $new_sql); trunk/lib/AkActiveRecord/AkAssociatedActiveRecord.php
r1399 r1401 394 394 $separator, $values); 395 395 } else if ($option=='bind') { 396 if(!isset($options [$option])) { 397 $options [$option]=array(); 398 } 396 399 $options [$option] = array_merge($options [$option],$values); 397 400 } … … 581 584 $owner = array(); 582 585 $keys = array(); 586 $record_counter=0; 583 587 while ($record = $results->FetchRow()) { 588 $record_counter++; 584 589 /** 585 590 * implement limits here, config should have limits per association
