| @@ 233-237 (lines=5) @@ | ||
| 230 | $stmt->close(); |
|
| 231 | } else { |
|
| 232 | self::$logger->warn('The following query caused an unexpected result ['.$sqlQuery.'], OID is ['.print_r($OID, true).'], MySql error is ['.self::getConnection()->error.']'); |
|
| 233 | if (!$this->BO->checkTableExists()) { |
|
| 234 | $this->BO->makeTable(); |
|
| 235 | ||
| 236 | throw new RecordNotFoundException('Failed to load object of OID ['.$OID.'], table ['.$this->BO->getTableName().'] did not exist so had to create!'); |
|
| 237 | } |
|
| 238 | ||
| 239 | return; |
|
| 240 | } |
|
| @@ 233-237 (lines=5) @@ | ||
| 230 | $stmt->close(); |
|
| 231 | } catch (PHPException $e) { |
|
| 232 | self::$logger->warn('The following query caused an unexpected result ['.$sqlQuery.']'); |
|
| 233 | if (!$this->BO->checkTableExists()) { |
|
| 234 | $this->BO->makeTable(); |
|
| 235 | ||
| 236 | throw new RecordNotFoundException('Failed to load object of OID ['.$OID.'], table ['.$this->BO->getTableName().'] did not exist so had to create!'); |
|
| 237 | } |
|
| 238 | ||
| 239 | return; |
|
| 240 | } |
|