symfony-1.4sfdoctrineguard

Unknown record property / related component "permissions" on "sfGuardUser"


There are a couple of other questions on here regarding this but they are old and have not been answered satisfactorily IMHO.

I am getting this error - "Unknown record property / related component "permissions" on "sfGuardUser", referer:" - in my error_log when I attempt to login to my symfony 1.4 app after deployment. I do not get it on my local machine.

When I submit the login form, Symfony throws a 500 error. If I refresh the page, the login form is reposted and I am logged in.

Can anyone suggest what might be causing this?


Solution

  • The answer can be found here: http://oldforum.symfony-project.org/index.php/m/102097/

    The solution is:

    rm ./lib/model/doctrine/base/BaseSfGuard*
    ./symfony cc
    

    from http://oldforum.symfony-project.org/index.php/m/102097/

    It seems that at some point I had this relation defined in my own schema file and this had been cached somewhere. When I moved the code to a new server without the cache, Symfony generated classes in a location which overrode the plugin's versions.