mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 22:13:13 +00:00
Use of old PDO singleton.
Also fixup test suite to check behaviour of set_mime (only setter)
This commit is contained in:
@@ -246,7 +246,7 @@ class record_adapter implements RecordInterface, cache_cacheableInterface
|
||||
throw new \Exception(sprintf('Unrecognized mime type %s', $mime));
|
||||
}
|
||||
|
||||
$connection = connection::getPDOConnection($this->app, $this->get_sbas_id());
|
||||
$connection = $this->databox->get_connection();
|
||||
|
||||
$sql = 'UPDATE record SET mime = :mime WHERE record_id = :record_id';
|
||||
$stmt = $connection->prepare($sql);
|
||||
|
Reference in New Issue
Block a user