Bonjour,
Je suis nouveau sous Symfony (que je trouve tout de même hardu à prendre en main :o), j'ai créé un backend et ma BDD sous Oracle (contraintes imposées) mais au moment d'insérer un nouvel élément j'ai la belle erreur :
Et voici la partie du schema.yml correspondant à la table dans laquelle j'essaie d'insérer la donnée :
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 500 | Internal Server Error | Doctrine_Connection_Oracle_Exception stack trace at () in SF_ROOT_DIR\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine\Doctrine\Connection.php line 1090 ... $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); }
Petite question supplémentaire : Comment faire pour mettre mon ID en auto-incrément ? (Je suis sous Oracle 11R2)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61 DIST: connection: doctrine tableName: DIST columns: discode: notnull: true type: string(20) fixed: false unsigned: false primary: false unique: true name: notnull: true type: string(60) fixed: false unsigned: false primary: false orgcode: notnull: true type: string(20) fixed: false unsigned: false primary: false unique: true logdel: notnull: false type: timestamp(7) fixed: false unsigned: false primary: false datecrea: notnull: true type: timestamp(7) fixed: false unsigned: false primary: false usrcrea: notnull: true type: string(20) fixed: false unsigned: false primary: false datemod: notnull: false type: timestamp(7) fixed: false unsigned: false primary: false usrmod: notnull: false type: string(20) fixed: false unsigned: false primary: false id: type: integer(8) fixed: false unsigned: false primary: true
Merci d'avance
Partager