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
|
@@ 598-610 (lines=13) @@
|
| 595 |
|
} |
| 596 |
|
|
| 597 |
|
$stmt->close(); |
| 598 |
|
} else { |
| 599 |
|
self::$logger->warn('The following query caused an unexpected result ['.$sqlQuery.']'); |
| 600 |
|
|
| 601 |
|
if (!$this->BO->checkTableExists()) { |
| 602 |
|
$this->BO->makeTable(); |
| 603 |
|
|
| 604 |
|
throw new RecordFoundException('Failed to load objects by attribute ['.$attribute.'] and value ['.$value.'], table did not exist so had to create!'); |
| 605 |
|
} |
| 606 |
|
|
| 607 |
|
self::$logger->debug('<<loadAllByAttribute []'); |
| 608 |
|
|
| 609 |
|
return array(); |
| 610 |
|
} |
| 611 |
|
|
| 612 |
|
self::$logger->debug('<<loadAllByAttribute ['.count($objects).']'); |
| 613 |
|
|