Gang

I know lots of people have had this problem based on the searches I
carried out this afternoon, but I still can't find a solution.  I'm
using the latest stable release of Symfony 1.4.11 on Windows 7
Ultimate.

I have written the Schema.yml file based on the tutorial and it is
located in config\doctrine folder.  Here is my schema contents:

# config/doctrine/schema.yml
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) }
    company:      { type: string(255), notnull: true }
    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_activated: { type: boolean, notnull: true, default: 0 }
    email:        { type: string(255), notnull: true }
    expires_at:   { type: timestamp, notnull: true }
  relations:
    JobeetCategory: { onDelete: CASCADE, 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 }

I've even copied the code directly from the Tutorial to ensure that I
didn't make a silly typing error.

When I run "php symfony doctrine:build-model" I get the file being
created in my tmp directory but it only contains {   } and I get the
same message "No yml schema found in C:\Users\CraigGHL\AppData\Local
\Temp/doctrine_schema_62022.yml" (The number being a random file
number)

I have tried deleting the temporary files as someone reported that
doctrine was trying to open an older file but that didn't help.

I have tried correcting the '/' between Temp and doctrine but that
didn't help.

Someone else suggested putting the following code in
phpconfiguration.class (but I couldn't find a file of this name.)

public function configureDoctrine(Doctrine_Manager $manager) {$manager-
>setAttribute(Doctrine::ATTR_QUOTE_IDENTIFIER, true);}

I searched and found some similar declarations in
sfDoctrinePluginConfiguration.class so I tried adding it in here at
the end of the file but that didn't seem to work either.

I'm really running out of ideas here and scratching my head, hoping
someone can get me over this hurdle because I really want to get right
into Symfony....but I'm kind of stuck!

Thanks in advance

Craig.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to