Alpha/Model/ActiveRecordProviderMySQL.php 1 location
|
@@ 577-587 (lines=11) @@
|
| 574 |
|
$result = $this->bindResult($stmt); |
| 575 |
|
|
| 576 |
|
$stmt->close(); |
| 577 |
|
} else { |
| 578 |
|
self::$logger->warn('The following query caused an unexpected result ['.$sqlQuery.']'); |
| 579 |
|
if (!$this->BO->checkTableExists()) { |
| 580 |
|
$this->BO->makeTable(); |
| 581 |
|
|
| 582 |
|
throw new RecordNotFoundException('Failed to load objects by attribute ['.$attribute.'] and value ['.$value.'], table did not exist so had to create!'); |
| 583 |
|
} |
| 584 |
|
self::$logger->debug('<<loadAllByAttribute []'); |
| 585 |
|
|
| 586 |
|
return array(); |
| 587 |
|
} |
| 588 |
|
|
| 589 |
|
// now build an array of objects to be returned |
| 590 |
|
$objects = array(); |
Alpha/Model/ActiveRecordProviderSQLite.php 1 location
|
@@ 617-629 (lines=13) @@
|
| 614 |
|
} |
| 615 |
|
|
| 616 |
|
$stmt->close(); |
| 617 |
|
} else { |
| 618 |
|
self::$logger->warn('The following query caused an unexpected result ['.$sqlQuery.']'); |
| 619 |
|
|
| 620 |
|
if (!$this->BO->checkTableExists()) { |
| 621 |
|
$this->BO->makeTable(); |
| 622 |
|
|
| 623 |
|
throw new RecordFoundException('Failed to load objects by attribute ['.$attribute.'] and value ['.$value.'], table did not exist so had to create!'); |
| 624 |
|
} |
| 625 |
|
|
| 626 |
|
self::$logger->debug('<<loadAllByAttribute []'); |
| 627 |
|
|
| 628 |
|
return array(); |
| 629 |
|
} |
| 630 |
|
|
| 631 |
|
self::$logger->debug('<<loadAllByAttribute ['.count($objects).']'); |
| 632 |
|
|