#1550: Relation errors with sfDoctrineGuardPlugin
-----------------------------------+----------------------------------------
Reporter: tbaa | Owner: jwage
Type: defect | Status: new
Priority: minor | Milestone: 1.0.3
Component: Import/Export | Version: 1.0.2
Keywords: schema | Has_test: 0
Mystatus: Pending Core Response | Has_patch: 0
-----------------------------------+----------------------------------------
I get this error:
Invalid fixture element "User" under "DieterProfile"
the problem is that the old relations are replaced by new relations while
parsing the schema.yml
the solution for me was to merge the two arrays instead of replacing it.
I changed the line 602 in Schema.php:
$array[$className]['relations'] = $relations;
into:
$array[$className]['relations'] =
array_merge($array[$className]['relations'],$relations);
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1550>
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
-~----------~----~----~----~------~----~------~--~---