erreur avec doctrine de jobeet
Bonjour!
je suis sur le projet jobeet et en tapant :
jobeet>php symfony doctrine:build-schema
doctrine generating yaml schema from database
Configuration file "C:\wamp\www\jobeet/config/databases.yml" specifies category "doctrine" with missing class key.
c'est la meme chose quand je tape la commande:
jobeet>php symfony doctrine:build-sql
Toute aide me sera precieuse s'il vous plait.
Réponses apportées à cette discussion
Envoie le code de ton schema.yml mais avec la colorisation syntaxique !
Bonjour!
Voici le code de mon shema YML contenu dans le repertoire doctrine:
JobeetCategory: actAs: {Timestampable: ~} columns: name: { type: string(255), notnull: true, unique: true }
JobeetJob: actAs: {Timestampable: ~} columns: category_id:{ type: integer, notnull: true } type: {type: string(255), notnull: true } company: {type: string(255) } logo: {type: string(255) } url: {type: string(255) } position: {type: string(255), notnull: true } location: {type: string(255), notnull: true } description: {type: string(4000), notnull: true } how_to_apply: {type: string(4000), notnull: true } token: {type: string(255), notnull:true, unique: true } is_public: {type: boolean, notnull: true, default: 1 } is_actived: {type: boolean, notnull: true, default: 0 } email: {type: string(255), notnull: true } expires_at: {type: timestamp, notnull: true } relations: JobeetCategory: {local: category_id, foreign: id, foreignAlias: JobeetJobs }
JobeetAffiliate: actAs: {Timestampable: ~} columns: url: { type: string(255), notnull: true } email: {type: string(255), notnull: true, unique: true } token: {type: string(255), notnull: true } is_active: {type: boolean, notnull: true, default: 0 } relations: JobeetCategories: class: JobeetCategory refClass: JobeetCategoryAffiliate local:affiliate_id foreign:category_id foreignAlias:JobeetAffiliates
JobeetCategoryAffiliate: columns: category_id: { type: integer, primary: true } affiliate_id: {type: integer, primary: true } relations: JobeetCategory: {onDelete: CASCADE, local: category_id, foreign: id } JobeetAffiliate: {onDelete: CASCADE, local:affiliate_id, foreign: id }
Mille excuses pour la coloration syntaxique, je l'ai bien sur notepade++ mais en collant ça n'a pas marché.
Merci d'avance pour votre aide.
Pardon le premier code n'est pas complet:
JobeetCategory:
actAs: {Timestampable: ~}
columns:
name: { type: string(255), notnull: true, unique: true }
JobeetJob:
actAs: {Timestampable: ~}
columns:
category_id:{ type: integer, notnull: true }
type: {type: string(255), notnull: true }
company: {type: string(255) }
logo: {type: string(255) }
url: {type: string(255) }
position: {type: string(255), notnull: true }
location: {type: string(255), notnull: true }
description: {type: string(4000), notnull: true }
how_to_apply: {type: string(4000), notnull: true }
token: {type: string(255), notnull:true, unique: true }
is_public: {type: boolean, notnull: true, default: 1 }
is_actived: {type: boolean, notnull: true, default: 0 }
email: {type: string(255), notnull: true }
expires_at: {type: timestamp, notnull: true }
relations:
JobeetCategory: {local: category_id, foreign: id, foreignAlias: JobeetJobs }
JobeetAffiliate:
actAs: {Timestampable: ~}
columns:
url: { type: string(255), notnull: true }
email: {type: string(255), notnull: true, unique: true }
token: {type: string(255), notnull: true }
is_active: {type: boolean, notnull: true, default: 0 }
relations:
JobeetCategories:
class: JobeetCategory
refClass: JobeetCategoryAffiliate
local:affiliate_id
foreign:category_id
foreignAlias:JobeetAffiliates
JobeetCategoryAffiliate:
columns:
category_id: { type: integer, primary: true }
affiliate_id: {type: integer, primary: true }
relations:
JobeetCategory: {onDelete: CASCADE, local: category_id, foreign: id }
JobeetAffiliate: {onDelete: CASCADE, local:affiliate_id, foreign: id }
Bonjour mes amis il n'y a vraiment personne pour m'aider?
Cordialement
Poste ton code sur pastebin, www.pastebin.com avec la bonne indentation.
Si tu veux une reponse rapide va sur freenode , #symfony-fr
bonne chance