Alpha/Model/ActiveRecordProviderMySQL.php 1 location
|
@@ 2248-2256 (lines=9) @@
|
| 2245 |
|
$stmt->close(); |
| 2246 |
|
|
| 2247 |
|
if ($result) { |
| 2248 |
|
if (count($result) > 0) { |
| 2249 |
|
self::$logger->debug('<<checkRecordExists [true]'); |
| 2250 |
|
|
| 2251 |
|
return true; |
| 2252 |
|
} else { |
| 2253 |
|
self::$logger->debug('<<checkRecordExists [false]'); |
| 2254 |
|
|
| 2255 |
|
return false; |
| 2256 |
|
} |
| 2257 |
|
} else { |
| 2258 |
|
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().']'); |
| 2259 |
|
self::$logger->debug('<<checkRecordExists [false]'); |
Alpha/Model/ActiveRecordProviderSQLite.php 1 location
|
@@ 2175-2183 (lines=9) @@
|
| 2172 |
|
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().']'); |
| 2173 |
|
} |
| 2174 |
|
|
| 2175 |
|
if (!isset($row['OID'])) { |
| 2176 |
|
self::$logger->debug('<<checkRecordExists [false]'); |
| 2177 |
|
|
| 2178 |
|
return false; |
| 2179 |
|
} else { |
| 2180 |
|
self::$logger->debug('<<checkRecordExists [true]'); |
| 2181 |
|
|
| 2182 |
|
return true; |
| 2183 |
|
} |
| 2184 |
|
} |
| 2185 |
|
|
| 2186 |
|
/** |