fix table name
This commit is contained in:
parent
d6f5eb5206
commit
6170e32d13
|
@ -66,7 +66,7 @@ namespace models;
|
|||
public function gets($ids)
|
||||
{
|
||||
$query = '
|
||||
SELECT * FROM group
|
||||
SELECT * FROM `group`
|
||||
WHERE id ';
|
||||
|
||||
//On génère la clause IN et les paramètres adaptés depuis le tableau des id
|
||||
|
@ -87,7 +87,7 @@ namespace models;
|
|||
public function deletes($ids)
|
||||
{
|
||||
$query = '
|
||||
DELETE FROM group
|
||||
DELETE FROM `group`
|
||||
WHERE id ';
|
||||
|
||||
//On génère la clause IN et les paramètres adaptés depuis le tableau des id
|
||||
|
@ -183,8 +183,8 @@ namespace models;
|
|||
{
|
||||
$query = '
|
||||
SELECT *
|
||||
FROM contact
|
||||
WHERE id IN (SELECT id_contact FROM group_contact WHERE id_group = :id)
|
||||
FROM `contact`
|
||||
WHERE id IN (SELECT id_contact FROM `group_contact` WHERE id_group = :id)
|
||||
';
|
||||
|
||||
$params = [
|
||||
|
|
|
@ -109,7 +109,7 @@ namespace models;
|
|||
FROM scheduled_group
|
||||
WHERE id_group IN (
|
||||
SELECT id_group
|
||||
FROM group_contact
|
||||
FROM `group`_contact
|
||||
WHERE id_contact IN (
|
||||
SELECT id
|
||||
FROM contact
|
||||
|
@ -227,7 +227,7 @@ namespace models;
|
|||
*/
|
||||
public function get_groups($id_scheduled)
|
||||
{
|
||||
$query = 'SELECT * FROM group WHERE id IN (SELECT id_group FROM scheduled_group WHERE id_scheduled = :id_scheduled)';
|
||||
$query = 'SELECT * FROM `group` WHERE id IN (SELECT id_group FROM scheduled_group WHERE id_scheduled = :id_scheduled)';
|
||||
|
||||
$params = ['id_scheduled' => $id_scheduled];
|
||||
|
||||
|
|
Loading…
Reference in New Issue