ça marche toujours pas mais en fait le truc c'est que j'ai fait des fixtures
pour toutes les autres tables et ça a marché j'ai peut-être fait une erreur
dans le fichier yml je vais le refaire et voir ce que ça donne ;)

Le 22 mars 2011 14:40, Lélio ML <[email protected]> a écrit :

> Et avec un
> # php ./symfony doctrine:build --all-classes
> avant de faire le data-load ?
>
> Et sinon que donne un
> # php ./symfony doctrine:build --all --and-load
> ?
>
> -----Message d'origine-----
> De : [email protected] [mailto:[email protected]] De
> la
> part de pascal camjusan
> Envoyé : mardi 22 mars 2011 14:32
> À : Symfony-fr
> Objet : [symfony-fr] problèmes avec doctrine
>
> bonjour j'ai deux problèmes avec doctrine :
>
> - le premier c'est lors d'un data-load j'ai une table appelée
> angle_articulaire. j'ai crée un fixture pour cette table et elle ne se
> remplit pas.
>
> - le deuxième problème est un peu plus génant. j'ai crée un module en
> laissant pour le moment tous les réglages par défaut. lorsque ma table est
> vide, la page indexsuccess s'affiche normalement avec les noms des champs.
> cependant, lorsqu'il y a un champ dans la table, le message suivant
> apparait
> :
>
> Unknown record property / related component "poignet_flex_oui" on
> "Angle_articulaire"
>
> voici mon schema yml et le fixture qui ne passe pas :
>
>
> ____________________________________________________________________________
> ___________________
> schema.yml
>
>
> Client:
>  columns:
>    nom:            { type: string(255), notnull: true }
>    adresse:        { type: string(500), notnull: true }
>    adresse_compl:  { type: string(255) }
>    code_postal:    { type: integer, notnull:true }
>    ville:          { type: string(255), notnull: true }
>    responsable:    { type: string(255) }
>    fonction:       { type: string(255) }
>    tel:            { type: integer }
>    fax:            { type: integer }
>    email:          { type: string(255), notnull: true }
>
> Ami:
>  columns:
>    nom_ami:  { type: string(255), notnull: true, unique: true }
>    version:  { type: string(10), notnull: true }
>    illustration: { type: string(255) }
>    illustrationgrand:  {type: string(255) }
>    description: { type: string(500) }
>
> Utilisateur:
>  columns:
>    client_id:   { type: integer, notnull: true }
>    nom:         { type: string(255), notnull: true }
>    prenom:      { type: string(255), notnull: true }
>    email:       { type: string(255), notnull: true }
>    login:       { type: string(255), notnull: true, unique: true }
>    mdp:         { type: string(255), notnull: true }
>    metier:      { type: string(255) }
>    service:     { type: string(255) }
>    site:        { type: string(255) }
>    dob:         { type: timestamp }
>    genre:       { type: string(20) }
>    taille:      { type: integer }
>    poids:       { type: integer }
>    lateralite:  { type: string(8) }
>    vue:         { type: string(255) }
>  relations:
>    Client:
>      onDelete: CASCADE
>      local: client_id
>      foreign: id
>      foreignAlias: Utilisateurs
>
> Licence:
>  actAs: { Timestampable: ~ }
>  columns:
>    nom_licence:     { type: string(255), notnull: true, unique:
> true }
>    date_fin:        { type: date }
>    ami_id:          { type: integer, notnull: true }
>    client_id:       { type: integer, notnull: true }
>    gestionnaire_id: { type: integer }
>  relations:
>    Client:
>      onDelete: CASCADE
>      local: client_id
>      foreign: id
>      foreignAlias: Licences
>    Ami:
>      onDelete: CASCADE
>      local: ami_id
>      foreign: id
>      foreignAlias: Licences1
>    Gestionnaire:
>      local: gestionnaire_id
>      foreign: id
>      foreignAlias: Licences2
>
> Gestionnaire:
>  columns:
>    nom:            { type: string(255), notnull: true }
>    prenom:         { type: string(255), notnull: true }
>    organisme:      { type: string(255) }
>    adresse:        { type: string(255) }
>    adresse_compl:  { type: string(255) }
>    code_postal:    { type: integer }
>    ville:          { type: string(255) }
>    tel:            { type: integer }
>    fax:            { type: integer }
>    email:          { type: string(255), notnull: true }
>    login:          { type: string(255), notnull: true, unique: true }
>    mdp:            { type: string(255), notnull: true }
>
> PasswordLost:
>  actAs: { Timestampable: ~ }
>  columns:
>    email:          { type: string(255), notnull: true }
>    mdp:            { type: string(255), notnull: true }
>
> Angle_articulaire:
>  columns:
>    id_user:             {type:integer}
>    poignet_flex_zone:   {type:boolean, notnull:true}
>    poignet_flex_img:    {type:string(255)}
>    poignet_flex_com:    {type:string(255)}
>    poignet_ext_zone:    {type:boolean, notnull:true}
>    poignet_ext_img:     {type:string(255)}
>    poignet_ext_com:     {type:string(255)}
>    poignet_dev_zone:    {type:boolean, notnull:true}
>    poignet_dev_img:     {type:string(255)}
>    poignet_dev_com:     {type:string(255)}
>    avbras_flex_zone:    {type:boolean, notnull:true}
>    avbras_flex_img:     {type:string(255)}
>    avbras_flex_com:     {type:string(255)}
>    avbras_pron_zone:    {type:boolean, notnull:true}
>    avbras_pron_img:     {type:string(255)}
>    avbras_pron_com:     {type:string(255)}
>    epaule_flex_zone:    {type:boolean, notnull:true}
>    epaule_flex_img:     {type:string(255)}
>    epaule_flex_com:     {type:string(255)}
>    epaule_abd_zone:     {type:boolean, notnull:true}
>    epaule_abd_img:      {type:string(255)}
>    epaule_abd_com:      {type:string(255)}
>    epaule_rot_zone:     {type:boolean, notnull:true}
>    epaule_rot_img:      {type:string(255)}
>    epaule_rot_com:      {type:string(255)}
>    tronc_flex_zone:     {type:boolean, notnull:true}
>    tronc_flex_img:      {type:string(255)}
>    tronc_flex_com:      {type:string(255)}
>    tronc_tors_zone:     {type:boolean, notnull:true}
>    tronc_tors_img:      {type:string(255)}
>    tronc_tors_com:      {type:string(255)}
>    tronc_incl_zone:     {type:boolean, notnull:true}
>    tronc_incl_img:      {type:string(255)}
>    tronc_incl_com:      {type:string(255)}
>    cou_flex_zone:       {type:boolean, notnull:true}
>    cou_flex_img:        {type:string(255)}
>    cou_flex_com:        {type:string(255)}
>    cou_tors_zone:       {type:boolean, notnull:true}
>    cou_tors_img:        {type:string(255)}
>    cou_tors_com:        {type:string(255)}
>    cou_incl_zone:       {type:boolean, notnull:true}
>    cou_incl_img:        {type:string(255)}
>    cou_incl_com:        {type:string(255)}
>    hanche_flex_zone:    {type:boolean, notnull:true}
>    hanche_flex_img:     {type:string(255)}
>    hanche_flex_com:     {type:string(255)}
>    hanche_abd_zone:     {type:boolean, notnull:true}
>    hanche_abd_img:      {type:string(255)}
>    hanche_abd_com:      {type:string(255)}
>    hanche_rot_zone:     {type:boolean, notnull:true}
>    hanche_rot_img:      {type:string(255)}
>    hanche_rot_com:      {type:string(255)}
>    gen_flex_zone:       {type:boolean, notnull:true}
>    gen_flex_img:        {type:string(255)}
>    gen_flex_com:        {type:string(255)}
>    gen_rot_zone:        {type:boolean, notnull:true}
>    gen_rot_img:         {type:string(255)}
>    gen_rot_com:         {type:string(255)}
>    chev_flex_zone:      {type:boolean, notnull:true}
>    chev_flex_img:       {type:string(255)}
>    chev_flex_com:       {type:string(255)}
>    chev_abd_zone:       {type:boolean, notnull:true}
>    chev_abd_img:        {type:string(255)}
>    chev_abd_com:        {type:string(255)}
>    chev_rot_zone:       {type:boolean, notnull:true}
>    chev_rot_img:        {type:string(255)}
>    chev_rot_com:        {type:string(255)}
>  relations:
>    Utilisateur:
>      onDelete: CASCADE
>      local: id_user
>      foreign: id
>      foreignAlias: Utilisateurs
>
> Angle_articulaire_img:
>  columns:
>    poignet_flex_oui:    {type:string(255)}
>    poignet_flex_non:    {type:string(255)}
>    poignet_ext_oui:     {type:string(255)}
>    poignet_ext_non:     {type:string(255)}
>    poignet_dev_oui:     {type:string(255)}
>    poignet_dev_non:     {type:string(255)}
>    avbras_flex_oui:     {type:string(255)}
>    avbras_flex_non:     {type:string(255)}
>    avbras_pron_oui:     {type:string(255)}
>    avbras_pron_non:     {type:string(255)}
>    epaule_flex_oui:     {type:string(255)}
>    epaule_flex_non:     {type:string(255)}
>    epaule_adb_oui:      {type:string(255)}
>    epaule_abd_non:      {type:string(255)}
>    epaule_rot_oui:      {type:string(255)}
>    epaule_rot_non:      {type:string(255)}
>    tronc_flex_oui:      {type:string(255)}
>    tronc_flex_non:      {type:string(255)}
>    tronc_tors_oui:      {type:string(255)}
>    tronc_tors_non:      {type:string(255)}
>    tronc_incl_oui:      {type:string(255)}
>    tronc_incl_non:      {type:string(255)}
>    cou_flex_oui:        {type:string(255)}
>    cou_flex_non:        {type:string(255)}
>    cou_tors_oui:        {type:string(255)}
>    cou_tors_non:        {type:string(255)}
>    cou_incl_oui:        {type:string(255)}
>    cou_incl_non:        {type:string(255)}
>    hanche_flex_oui:     {type:string(255)}
>    hanche_flex_non:     {type:string(255)}
>    hanche_abd_oui:      {type:string(255)}
>    hanche_abd_non:      {type:string(255)}
>    hanche_rot_oui:      {type:string(255)}
>    hanche_rot_non:      {type:string(255)}
>    gen_flex_oui:        {type:string(255)}
>    gen_flex_non:        {type:string(255)}
>    gen_rot_oui:         {type:string(255)}
>    gen_rot_non:         {type:string(255)}
>    chev_flex_oui:       {type:string(255)}
>    chev_flex_non:       {type:string(255)}
>    chev_abd_oui:        {type:string(255)}
>    chev_abd_non:        {type:string(255)}
>    chev_rot_oui:        {type:string(255)}
>    chev_rot_non:        {type:string(255)}
>
>
> ____________________________________________________________________________
> ________________
>
> angle_articulaire.yml
>
> Angle_articulaire:
>  1:
>    id_user: 1
>    poignet_flex_zone: false
>    poignet_flex_com: l'angle est trop souvent sollicité
>    poignet_ext_zone: true
>    poignet_dev_zone: false
>    avbras_flex_zone:true
>    avbras_pron_zone: true
>    epaule_flex_zone: false
>    epaule_flex_com: bof
>    epaule_abd_zone: true
>    epaule_rot_zone: true
>    tronc_flex_zone:true
>    tronc_tors_zone:false
>    tronc_tors_com:torsions très fréquentes
>    tronc_incl_zone: false
>    tronc_incl_com:pareil que torsion
>    cou_flex_zone:false
>    cou_tors_zone:true
>    cou_incl_zone:false
>    hanche_flex_zone: true
>    hanche_abd_zone: true
>    hanche_rot_zone:true
>    gen_flex_zone: false
>    gen_flex_com: entorses fréquentes
>    gen_rot_zone: false
>    chev_flex_zone: false
>    chev_abd_zone: true
>    chev_rot_zone: true
> _____________________________________________________
>
>
> quelqu'un aurait une idée de la source du problème ? merci d'avance !
>
> --
> Vous recevez ce message, car vous êtes abonné au groupe Google
> Groupes Symfony-fr.
> Pour envoyer un message à ce groupe, adressez un e-mail
> à [email protected].
> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse
> [email protected].
> Pour plus d'options, consultez la page de ce groupe :
> http://groups.google.com/group/symfony-fr?hl=fr
>
>
> --
> Vous recevez ce message, car vous êtes abonné au groupe Google
> Groupes Symfony-fr.
> Pour envoyer un message à ce groupe, adressez un e-mail à
> [email protected].
> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse
> [email protected].
> Pour plus d'options, consultez la page de ce groupe :
> http://groups.google.com/group/symfony-fr?hl=fr
>
>

-- 
Vous recevez ce message, car vous êtes abonné au groupe Google 
Groupes Symfony-fr.
Pour envoyer un message à ce groupe, adressez un e-mail 
à [email protected].
Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse 
[email protected].
Pour plus d'options, consultez la page de ce groupe : 
http://groups.google.com/group/symfony-fr?hl=fr

Répondre à