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