bonjour je travaille sur un projet php5 mvc en utilisant PHPData Mapper .
j ai rencontré des grands soucis lorsque je fait des ajout, modifie et supprimer. ce qui est bizarre c est que tous fonctionne bien (c est a dire si je fais les ajout , modifie et suppression) mais ça je me génère une exception .
je voulais savoir est ce quelqu’un utilisant PHPData Mapper a deja rencontrer ce genre de probleme si oui comment il l a resolue merci de votre aide

voici l erreur:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
PDOException Object ( [message:protected] => SQLSTATE[HY000]: General error [string:Exception:private] => [code:protected] => HY000 [file:protected] => C:\wamp\www\wap.amnir\admin\lib\core\phpDataMapper\Base.php [line:protected] => 370 [trace:Exception:private] => Array ( [0] => Array ( [file] => C:\wamp\www\wap.amnir\admin\lib\core\phpDataMapper\Base.php [line] => 370 [function] => fetch [class] => PDOStatement [type] => -> [args] => Array ( [0] => 8 ) ) [1] => Array ( [file] => C:\wamp\www\wap.amnir\admin\lib\core\phpDataMapper\Base.php [line] => 449 [function] => getResultSet [class] => phpDataMapper_Base [type] => -> [args] => Array ( [0] => PDOStatement Object ( [queryString] => insert into users(Identifiant,Password,Level) value('test','test',2) ) ) ) [2] => Array ( [file] => C:\wamp\www\wap.amnir\admin\actions\adduser.module.php [line] => 43 [function] => query [class] => phpDataMapper_Base [type] => -> [args] => Array ( [0] => insert into users(Identifiant,Password,Level) value('test','test',2) ) ) [3] => Array ( [file] => C:\wamp\www\wap.amnir\admin\index.php [line] => 91 [function] => adduser_action [class] => adduserMultiActionController [type] => -> [args] => Array ( ) ) ) [previous:Exception:private] => [errorInfo] => Array ( [0] => HY000 ) [xdebug_message] => ( ! ) PDOException: SQLSTATE[HY000]: General error in C:\wamp\www\wap.amnir\admin\lib\core\phpDataMapper\Base.php on line 370 Call Stack #TimeMemoryFunctionLocation 10.0009391536{main}( )..\index.php:0 20.02831273952adduserMultiActionController->adduser_action( )..\index.php:91 30.10241411744phpDataMapper_Base->query( )..\adduser.module.php:43 40.30761412912phpDataMapper_Base->getResultSet( )..\Base.php:449 50.30761413216PDOStatement->fetch( )..\Base.php:370 )