Bonjour,
j'utilise pour la premiere symfony je boute sur un probleme insertion
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
SQLSTATE[HY000]: General error: 1722 OCIStmtExecute: ORA-01722: Nombre non valide
(ext\pdo_oci\oci_statement.c:146)
stack trace
at ()
in SF_ROOT_DIR\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine\Doctrine\Connection.php line 1083 ...
 
            $message .= sprintf('. Failing Query: "%s"', $query);
        }
 
        $exc  = new $name($message, (int) $e->getCode());
        if ( ! isset($e->errorInfo) || ! is_array($e->errorInfo)) {
            $e->errorInfo = array(null, null, null, null);
        }at Doctrine_Connection->rethrowException(object('PDOException'), object('Doctrine_Connection_Statement'))in SF_ROOT_DIR\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine\Doctrine\Connection\Statement.php line 269 ...        } catch (Doctrine_Adapter_Exception $e) {
        }
 
        $this->_conn->rethrowException($e, $this);
 
        return false;
    }at Doctrine_Connection_Statement->execute(array('09', 'wah', 'wa', 'O', 1, 1))in SF_ROOT_DIR\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine\Doctrine\Connection.php line 1043 ...        try {
            if ( ! empty($params)) {
                $stmt = $this->prepare($query);
                $stmt->execute($params);
 
                return $stmt->rowCount();
            } else {at Doctrine_Connection->exec('INSERT INTO JUGEMENT (jg_jug, jg_abrnom, jg_nom, jg_obsolet, jg_crittri, jg_note_nouv) VALUES (?, ?, ?, ?, ?, ?)', array('09', 'wah', 'wa', 'O', 1, 1))
je sais que c'est un probleme de conversion mais helas la doctrine me renvoi les champs numerique comme string
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
SQL queries
Doctrine Version: 1.2.3
 
          ALTER SESSION SET NLS_DATE_FORMAT = "YYYY-MM-DD HH24:MI:SS"
          0.08s, "doctrine" connection
 
 
 
          INSERT INTO JUGEMENT (jg_jug, jg_abrnom, jg_nom, jg_obsolet, jg_crittri, jg_note_nouv) VALUES ('09', 'wah', 'wa', 'O', '1', '1')
          0.00s, "doctrine" connection
comme resoudre le probleme pour qu il ne met pas de cote pour les valeurs numeriques


Cordialement,