2010-09-10 12 views
0

je le schéma suivant pour la génération d'une classe de table/modèle nommé Account:Table génération de schéma provoque une erreur SQL

Account: 
    actAs: 
    Timestampable: ~ 
    SoftDelete: 
     name: deleted 
     type: boolean 
    columns: 
    branch_code: 
     type: integer 
     notnull: true 
    state_id: 
     type: integer 
     notnull: true 
    state_description: 
     type: string(20) 
     notnull: true 
    number: 
     type: integer 
     notnull: true 
    client_name: 
     type: string(100) 
     notnull: true 
    client_code: 
     type: integer 
     notnull: true 
    associated_do: 
     type: integer 
     notnull: true 
    loan_start_date: 
     type: datetime 
     notnull: true 
    first_missing_payment: 
     type: datetime 
     notnull: true 
    delay: 
     type: integer 
     notnull: true 
    balance: 
     type: float 
     notnull: true 
    limit: 
     type: float 
     notnull: true 
    lawyer_id: 
     type: integer 
    internal_user_id: 
     type: integer 
    solicitor_id: 
     type: integer 
    relations: 
    Lawyer: 
     local: lawyer_id 
     foreign: id 
    InternalUser: 
     local: internal_user_id 
     foreign: id 
    Solicitor: 
     local: solicitor_id 
     foreign: id 
    Branch: 
     local: branch_code 
     foreign: code 
    Evolutions: 
     type: many 
     class: Evolution 
     local: id 
     foreign: account_id 

Quand je lance la tâche symfony pour recharger la base de données, se produit l'erreur ci-dessous (tronqué pour plus de lisibilité):

SQLSTATE [42000]: Erreur de syntaxe ou violation d'accès: 1064 Vous avez une erreur dans votre syntaxe SQL; vérifier le manuel qui correspond à votre version du serveur MySQL pour la bonne syntaxe à utiliser FLOAT limite près »(18, 2) NOT NULL, lawyer_id BIGINT, ...) MOTEUR = INNODB

Répondre

1

Je tentais de déclarer colonnes nommées limit qui est un mot clé SQL réservé.