[Doctrine] erreur lors du build--sql
Bonjour à tous !
Suite aux conseils d'un ami qui suit la même formation que moi, je me suis lancé dans l'apprantissage de symfony (je n'avais jamais utilisé de framework avant)
J'ai un petit soucis avec mon shéma yml.
J'arrive à faire un Doctrine:build --model sans avoir d'erreur, mais quand je fais doctrine:build --sql j'ai cette erreur:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| ./symfony doctrine:build --sql
>> doctrine generating model classes
>> file+ /tmp/doctrine_schema_40147.yml
>> tokens /home/vincent/www/Poker05/lib/model/doctrine/base/BaseCashGame.class.php
>> tokens /home/vincent/www/Poker05/lib/model/doctrine/base/BaseRepartition.class.php
>> tokens /home/vincent/www/Poker05/lib/model/doctrine/base/BaseCashGameResultats.class.php
>> tokens /home/vincent/www/Poker05/lib/model/doctrine/base/BaseSng.class.php
>> tokens /home/vincent/www/Poker05/lib/model/doctrine/base/BaseResultats.class.php
>> tokens /home/vincent/www/Poker05/lib/model/doctrine/base/BaseMtt.class.php
>> tokens /home/vincent/www/Poker05/lib/model/doctrine/base/BaseMttResultats.class.php
>> tokens /home/vincent/www/Poker05/lib/model/doctrine/base/BaseManches.class.php
>> tokens /home/vincent/www/Poker05/lib/model/doctrine/base/BaseSngResultats.class.php
>> tokens /home/vincent/www/Poker05/lib/model/doctrine/base/BaseChampionnats.class.php
>> tokens /home/vincent/www/Poker05/lib/model/doctrine/base/BaseJoueurs.class.php
>> tokens /home/vincent/www/Poker05/lib/model/doctrine/base/BaseAlias.class.php
>> autoload Resetting application autoloaders
>> file- /home/vincent/www/Poker05/cache/frontend/dev/config/config_autoload.yml.php
>> doctrine generating sql for models
PHP Parse error: syntax error, unexpected '.', expecting T_STRING in /home/vincent/www/Poker05/lib/model/doctrine/. { typeTable.class.php on line 8
Parse error: syntax error, unexpected '.', expecting T_STRING in /home/vincent/www/Poker05/lib/model/doctrine/. { typeTable.class.php on line 8 |
J'ai beau chercher, je ne trouve pas d'où ça peut venir dans mon shéma, et j'ai cherché sur internet une solution à ce problème sans en avoir trouvé.
voilà mon shéma:
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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571
| Alias:
connection: doctrine
tableName: alias
columns:
id:
type: integer(8)
autoincrement: true
primary: true
pseudo:
type: string(50)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
joueur_id:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
created_at:
type: timestamp(25)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
updated_at:
type: timestamp(25)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
relations:
Joueurs:
class: Joueurs
local: joueur_id
foreign: joueur_id
foreignAlias: Alias
Championnats:
connection: doctrine
tableName: championnats
columns:
champ_id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: true
champ_lib:
type: string(50)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
date_debut:
type: date(25)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
date_fin:
type: date(25)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
nb_rounds:
type: integer(8)
fixed: false
unsigned: false
primary: false
default: '1'
notnull: true
autoincrement: false
tournoi_final:
type: integer(1)
fixed: false
unsigned: false
primary: false
default: '1'
notnull: true
autoincrement: false
Joueurs:
connection: doctrine
tableName: joueurs
columns:
joueur_id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: true
nom:
type: string(50)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
prenom:
type: string(50)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
pseudo_usuel:
type: string(50)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
email:
type: string(50)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
naissance:
type: date(25)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
adresse1:
type: string(255)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
adresse2:
type: string(255)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
ville:
type: string(50)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
cp:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
tel_fixe:
type: string(30)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
tel_portable:
type: string(30)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
Manches:
connection: doctrine
tableName: manches
columns:
manche_id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: true
champ_id:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
date_manche:
type: date(25)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
nom_manche:
type: string(50)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
relations:
Championnats:
class: Championnats
local: champ_id
foreign: champ_id
foreignAlias: Championnats
CashGame:
connection: doctrine
tableName: cashgame
columns:
cash_game_id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: true
manche_id:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
cave:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
max_recaves:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
relations:
Manches:
class: Manches
local: manche_id
foreign: manche_id
foreignAlias: CashGames
CashGameResultats:
connection: doctrine
tableName: cashgame_resultats
columns:
id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: true
cash_game_id:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
joueur_id:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
caves:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
cave_finale:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
relations:
Manches:
class: Manches
local: cash_game_id
foreign: cash_game_id
foreignAlias: Resultats
Mtt:
connection: doctrine
tableName: mtt
columns:
mtt_id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: true
manche_id:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
buy_in:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
repartition_id:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
relations:
Manches:
class: Manches
local: manche_id
foreign: manche_id
foreignAlias: Mtts
Repartition:
class: Repartition
local: repartition_id
foreign: repartition_id
foreignAlias: Repartition
MttResultats:
connection: doctrine
tableName: mtt_resultats
columns:
id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: true
mtt_id:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
joueur_id:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
place:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
relations:
Mtt:
class: Mtt
local: mtt_id
foreign: mtt_id
foreignAlias: Resultats
Resultats:
connection: doctrine
tableName: resultats
columns:
id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: true
manche_id:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
joueur_id:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
pseudo:
type: string(50)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
points:
type: integer(8)
fixed: false
unsigned: false
primary: false
default: '0'
notnull: false
autoincrement: false
relations:
Manches:
class: Manches
local: manche_id
foreign: manche_id
foreignAlias: Resultats
Sng:
connection: doctrine
tableName: sng
columns:
sng_id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: true
manche_id:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
buy_in:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
repartition_id:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
relations:
Manches:
class: Manches
local: manche_id
foreign: manche_id
foreignAlias: Sngs
Repartition:
class: Repartition
local: repartition_id
foreign: repartition_id
foreignAlias: Repartition
SngResultats:
connection: doctrine
tableName: sng_resultats
columns:
id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: true
sng_id:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
joueur_id:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
place:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
relations:
Sng:
class: Sng
local: sng_id
foreign: sng_id
foreignAlias: Resultats
Repartition:
connection: doctrine
tableName: repartition
columns:
repartition_id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: true
repartition_schema:
type: string(100)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
repartition_label:
type: string(50)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
Resultats:
connection: doctrine
tableName: resultat
columns:
id:
type: integer(8)
fixed: false
unsigned: false
primary: true
autoincrement: true
manche_id:
type: integer(8)
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
pseudo:
type: string(50)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
points:
type: integer(8)
fixed: false
unsigned: false
primary: false
default: '0'
notnull: false
autoincrement: false
relations:
Manches:
class: Manches
local: manche_id
foreign: manche_id
foreignAlias: OldTableResultats |
Si quelqu'un a une idée ça serait sympa