#1550: Relation errors with sfDoctrineGuardPlugin
----------------------------+-----------------------------------------------
Reporter: tbaa | Owner: jwage
Type: defect | Status: closed
Priority: minor | Milestone: 1.0.3
Component: Import/Export | Version: 1.0.2
Resolution: invalid | Keywords: schema
Has_test: 0 | Mystatus: Pending Core Response
Has_patch: 0 |
----------------------------+-----------------------------------------------
Changes (by jwage):
* status: new => closed
* resolution: => invalid
Comment:
Your data fixtures are incorrect. They should be:
{{{
sfGuardUser:
Dieter:
username: Dieter
password: asd
Profile:
DieterProfile:
User: Dieter
}}}
The relationship you defined between Profile and sfGuardUser is aliased as
User so you must reference it that way. Also, in Doctrine it is not
required to specify any configuration for profile in app.yml. All you have
to do is define the relationship between the models.
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1550#comment:4>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---