#1668: Couldn't call Doctrine::set
-----------------------------------+----------------------------------------
Reporter: roberthenniger | Owner: romanb
Type: defect | Status: new
Priority: blocker | Milestone:
Component: Record | Version: 1.1-DEV
Keywords: | Has_test: 0
Mystatus: Pending User Response | Has_patch: 0
-----------------------------------+----------------------------------------
Today I tried to migrate my system from 1.0 to 1.1 branch.
I wanted to check the new hydration modes.
I always get an error message with the 1.1 branche.
{{{
<br />
<b>Fatal error</b>: Uncaught exception 'Doctrine_Record_Exception' with
message 'Couldn't call Doctrine::set(), second argument should be an
instance of Doctrine_Collection when setting one-to-many references.' in
E:\_server\www\flexsia\branches\fxa_v2\Flexsia\Lib\Doctrine\tags\pre1.1\lib\Doctrine\Record.php:1310
Stack trace:
#0
E:\_server\www\flexsia\branches\fxa_v2\Flexsia\Lib\Doctrine\tags\pre1.1\lib\Doctrine\Record.php(1247):
Doctrine_Record->coreSetRelated('User',
Object(Flexsia_Framework_Database_User))
#1
E:\_server\www\flexsia\branches\fxa_v2\Flexsia\Lib\Doctrine\tags\pre1.1\lib\Doctrine\Record.php(1205):
Doctrine_Record->_set('User', Object(Flexsia_Framework_Database_User),
true)
#2
E:\_server\www\flexsia\branches\fxa_v2\Flexsia\Lib\Doctrine\tags\pre1.1\lib\Doctrine\Access.php(60):
Doctrine_Record->set('User', Object(Flexsia_Framework_Database_User))
#3
E:\_server\www\flexsia\branches\fxa_v2\Flexsia\Lib\Doctrine\tags\pre1.1\lib\Doctrine\Collection.php(451):
Doctrine_Access->__set('User', Object(Flexsia_Framework_Databas in
<b>E:\_server\www\flexsia\branches\fxa_v2\Flexsia\Lib\Doctrine\tags\pre1.1\lib\Doctrine\Record.php</b>
on line <b>1310</b><br />
}}}
All works fine with 1.0 so i guess there is a bigger change in 1.1 how
relationships are defined.
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1668>
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
-~----------~----~----~----~------~----~------~--~---