tingobol / gii-template-collection

Automatically exported from code.google.com/p/gii-template-collection
0 stars 0 forks source link

setRelationRecords conflicts with Magic Methods #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to save a MANY_MANY relation 

What is the expected output?
Correct saving :)

What do you see instead?
CException

Description
Property "Project.setRelationRecords" is not defined.

Stack Trace

#0 
/Users/tobias/Webserver/NetBeans/hk-2010/lib/yii/db/ar/CActiveRecord.php(110): 
CComponent->__get('setRelationReco...')
#1 /Users/tobias/Webserver/NetBeans/hk-2010/lib/yii/base/CComponent.php(264): 
CActiveRecord->__get('setRelationReco...')
#2 
/Users/tobias/Webserver/NetBeans/hk-2010/lib/yii/db/ar/CActiveRecord.php(195): 
CComponent->__call('setRelationReco...', Array)
#3 [internal function]: CActiveRecord->__call('setRelationReco...', Array)
#4 
/Users/tobias/Webserver/NetBeans/hk-2010/modules/za/controllers/ProjectControlle
r.php(91): Project->setRelationRecords('persons', Array)
#5 
/Users/tobias/Webserver/NetBeans/hk-2010/lib/yii/web/actions/CInlineAction.php(3
2): ProjectController->actionCreate()

Please use labels and text to provide additional information.
Looks like the attached behavior does not get called correctly, instead yii's 
trying to set the property with Magic Methods?!

Original issue reported on code.google.com by schm...@usrbin.de on 9 Sep 2010 at 1:29

GoogleCodeExporter commented 9 years ago
not longer valid

Original comment by schm...@usrbin.de on 16 Sep 2010 at 10:17