This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

sfGuardUserProfile error

Questions relating to sfGuardPlugin or other user management plugins

sfGuardUserProfile error

by maesbn » Mon Aug 01, 2011 11:05 am


recently I'm getting this error when i build (symfony doctrine:build --all --and-load --no-confirmation) my project:

Unknown record property / related component "user" on "sfGuardUserProfile"

The error occurs when symfony tries to load the fixtures.

In my .yml files the relation between the sfGuardUser and the sfGuardUserProfile is set like this:

Code: Select all
      class: sfGuardUser
      foreign: id
      local: user_id
      type: one
      onDelete: cascade
      foreignType: one
      foreignAlias: Profile

I noticed that symfony doesn't use my 40_users.yml file from the directory"config/doctrine" anymore to create the database. But I don't seem to find what other file he would be using to create the sfGuardUserProfile-table.
He does create the table but when i alter a field, it doesn't change on the build.

Which other files (beside the files in the config/doctrine directory) does symfony use when creating the database on the build?

Junior Member
Posts: 1
Joined: Mon Aug 01, 2011 10:43 am

Re: sfGuardUserProfile error

by Mathias » Wed Aug 03, 2011 2:40 pm

I think stuff is case sensitive. You have user and User.
Posts: 85
Joined: Thu May 26, 2011 4:45 pm