Erreur avec doctrine de jobeet - Apprendre-PHP.com

Rechercher
Boutique en ligne, solution e-commerce, script PHP et PERL : RAYNETTE

erreur avec doctrine de jobeet

Par nomager -  5 reponses -  Le 27/10/2009 -  Flux RSS - 

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

Par saturn1 -  Le 27/10/2009 - 

Envoie le code de ton schema.yml mais avec la colorisation syntaxique !

 

 
Par nomager -  Le 27/10/2009 - 

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.

 
Par nomager -  Le 27/10/2009 - 

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 }

 
Par nomager -  Le 29/10/2009 - 

Bonjour mes amis il n'y a vraiment personne pour m'aider?

Cordialement

 
Par saturn1 -  Le 29/10/2009 - 

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

 

 

Ajouter une réponse à la discussion

Seuls les membres loggués sont autorisés à poster dans les forums !