I’m getting this error every time i generate a full CRUD from a full MODEL of Gii Template Collection: http://www.yiiframework.com/extension/gii-template-collection/
Here are the first lines of the error:
[color="#FF0000"]Property "OrgaoEmissor.id" is not defined.[/color]
Source File
C:\wamp\www\yii\framework\db\ar\CActiveRecord.php(110)
00098: */
00099: public function __get($name)
00100: {
00101: if(isset($this->_attributes[$name]))
00102: return $this->_attributes[$name];
00103: else if(isset($this->getMetaData()->columns[$name]))
00104: return null;
00105: else if(isset($this->_related[$name]))
00106: return $this->_related[$name];
00107: else if(isset($this->getMetaData()->relations[$name]))
00108: return $this->getRelated($name);
00109: else
[color="#FF0000"]00110: return parent::__get($name);[/color]
00111: }
OrgaoEmissor is a table related with Client. I generate full model and crud for both but then this error appears, can someone help me? Is it a relationship problem within the database?