Root component not initialized ?
Bonjour, j'ai accès à toutes les tables de mon modèle de donnée, sauf une qui me donne cette erreur "Root component not initialized" pourtant elle est bien déclaré dans mon modèle, j'ai les méthodes pour y accéder, et puis j'arrive a accéder à d'autre classe qui on pourtant la même relations avec le modèle.
D'ou peut venir cette erreur?
voici un bout de mon schema.yml
mon modèle est hardware,
la table qui pose problème est update
et celle qui fonctionne parfaitement est test
Code:
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 62 63 64 65 66 67 68 69 70 71 72 73 74 75
| hardware:
columns:
idHardware:
type: integer(4)
primary: true
unsigned: true
notnull: true
autoincrement: true
serialNumber:
type: string(45)
unique: true
notnull: true
dateProd:
type: timestamp
notnull: true
options:
charset: utf8
collate: utf8_unicode_ci
update:
columns:
idUpdate:
type: integer(4)
primary: true
unsigned: true
notnull: true
autoincrement: true
date:
type: timestamp
notnull: true
success:
type: integer(1)
notnull: true
default: '0'
hardware_idHardware:
type: integer(4)
unsigned: true
notnull: true
relations:
hardwareIdHardware:
class: hardware
local: hardware_idHardware
foreign: idHardware
foreignAlias: updates
options:
charset: utf8
collate: utf8_unicode_ci
test:
columns:
idTest:
type: integer(4)
primary: true
unsigned: true
notnull: true
autoincrement: true
date:
type: timestamp
notnull: true
duration:
type: string(20)
notnull: true
hardware_idHardware:
type: integer(4)
unsigned: true
notnull: true
relations:
hardwareIdHardware:
class: hardware
local: hardware_idHardware
foreign: idHardware
foreignAlias: tests
options:
charset: utf8
collate: utf8_unicode_ci |
merci pour votre aide