Update the query for updating the image repository.
This commit is contained in:
parent
b4610fc6a8
commit
0ded6e24f7
@ -76,9 +76,10 @@ class ImageRepository implements ImageRepositoryInterface
|
|||||||
{
|
{
|
||||||
$query = "UPDATE images
|
$query = "UPDATE images
|
||||||
SET url = ?,
|
SET url = ?,
|
||||||
title = ?,
|
title = ?,
|
||||||
width = ?,
|
width = ?,
|
||||||
height = ?
|
height = ?
|
||||||
|
WHERE id = ?
|
||||||
";
|
";
|
||||||
|
|
||||||
$results = $this->db->getConnection()->exec($query, [
|
$results = $this->db->getConnection()->exec($query, [
|
||||||
@ -86,6 +87,7 @@ class ImageRepository implements ImageRepositoryInterface
|
|||||||
$image->getTitle(),
|
$image->getTitle(),
|
||||||
$image->getWidth(),
|
$image->getWidth(),
|
||||||
$image->getHeight(),
|
$image->getHeight(),
|
||||||
|
$image->getId(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return $results;
|
return $results;
|
||||||
|
Loading…
Reference in New Issue
Block a user