Alpha/Model/ActiveRecordProviderMySQL.php 1 location
|
@@ 2245-2253 (lines=9) @@
|
| 2242 |
|
$stmt->close(); |
| 2243 |
|
|
| 2244 |
|
if ($result) { |
| 2245 |
|
if (count($result) > 0) { |
| 2246 |
|
self::$logger->debug('<<checkRecordExists [true]'); |
| 2247 |
|
|
| 2248 |
|
return true; |
| 2249 |
|
} else { |
| 2250 |
|
self::$logger->debug('<<checkRecordExists [false]'); |
| 2251 |
|
|
| 2252 |
|
return false; |
| 2253 |
|
} |
| 2254 |
|
} else { |
| 2255 |
|
throw new AlphaException('Failed to check for the record ['.$OID.'] on the class ['.get_class($this->BO).'] from the table ['.$this->BO->getTableName().'], query is ['.$this->BO->getLastQuery().']'); |
| 2256 |
|
self::$logger->debug('<<checkRecordExists [false]'); |
Alpha/Model/ActiveRecordProviderSQLite.php 1 location
|
@@ 2223-2231 (lines=9) @@
|
| 2220 |
|
return false; |
| 2221 |
|
} |
| 2222 |
|
|
| 2223 |
|
if (!isset($row['OID'])) { |
| 2224 |
|
self::$logger->debug('<<checkRecordExists [false]'); |
| 2225 |
|
|
| 2226 |
|
return false; |
| 2227 |
|
} else { |
| 2228 |
|
self::$logger->debug('<<checkRecordExists [true]'); |
| 2229 |
|
|
| 2230 |
|
return true; |
| 2231 |
|
} |
| 2232 |
|
} |
| 2233 |
|
|
| 2234 |
|
/** |