remove sql that used inexisting table

add missing namespace
This commit is contained in:
Nicolas Le Goff
2012-08-20 13:53:19 +02:00
parent 71b3e65f1a
commit 1e80ec1cb0
2 changed files with 15 additions and 8 deletions

View File

@@ -13,6 +13,7 @@ namespace Alchemy\Phrasea\Controller\Prod;
use Silex\Application; use Silex\Application;
use Silex\ControllerProviderInterface; use Silex\ControllerProviderInterface;
use Symfony\Component\HttpFoundation\Request;
/** /**
* *

View File

@@ -962,20 +962,26 @@ class User_Adapter implements User_Interface, cache_cacheableInterface
$stmt->execute(array(':usr_id' => $this->get_id())); $stmt->execute(array(':usr_id' => $this->get_id()));
$stmt->closeCursor(); $stmt->closeCursor();
$sql = 'DELETE FROM usrlist WHERE usr_id = :usr_id'; /**
$stmt = $this->appbox->get_connection()->prepare($sql); * @todo does usrlist not exists anymore ?
$stmt->execute(array(':usr_id' => $this->get_id())); */
$stmt->closeCursor(); // $sql = 'DELETE FROM usrlist WHERE usr_id = :usr_id';
// $stmt = $this->appbox->get_connection()->prepare($sql);
// $stmt->execute(array(':usr_id' => $this->get_id()));
// $stmt->closeCursor();
$sql = 'DELETE FROM usr_settings WHERE usr_id = :usr_id'; $sql = 'DELETE FROM usr_settings WHERE usr_id = :usr_id';
$stmt = $this->appbox->get_connection()->prepare($sql); $stmt = $this->appbox->get_connection()->prepare($sql);
$stmt->execute(array(':usr_id' => $this->get_id())); $stmt->execute(array(':usr_id' => $this->get_id()));
$stmt->closeCursor(); $stmt->closeCursor();
$sql = 'DELETE FROM usrlistusers WHERE usr_id = :usr_id'; /**
$stmt = $this->appbox->get_connection()->prepare($sql); * @todo table usrlistusers does not exists anymore ?
$stmt->execute(array(':usr_id' => $this->get_id())); */
$stmt->closeCursor(); // $sql = 'DELETE FROM usrlistusers WHERE usr_id = :usr_id';
// $stmt = $this->appbox->get_connection()->prepare($sql);
// $stmt->execute(array(':usr_id' => $this->get_id()));
// $stmt->closeCursor();
$sql = 'DELETE FROM ssel WHERE usr_id = :usr_id'; $sql = 'DELETE FROM ssel WHERE usr_id = :usr_id';
$stmt = $this->appbox->get_connection()->prepare($sql); $stmt = $this->appbox->get_connection()->prepare($sql);