Yii Framework Forum: Property "CMysqlTableSchema._primaryKey" is not defined - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Property "CMysqlTableSchema._primaryKey" is not defined Rate Topic: -----

#1 User is offline   Inkvizitor 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 18-April 09

Posted 01 June 2009 - 02:54 PM

I have 2 models that connected.

Model class 'Movie_has_Country':


Model class 'Country':


I make query in Controler and it works:


But when i added
$criteria->select = "Movie_has_Country.country_id";
I got error:


What's wrong?

0

#2 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,875
  • Joined: 04-October 08
  • Location:DC, USA

Posted 01 June 2009 - 03:02 PM

Thanks! Fixed.
0

#3 User is offline   Inkvizitor 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 18-April 09

Posted 01 June 2009 - 03:58 PM

I am happy help to fire bug, but how can i fixed this problem now? =)
0

#4 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,875
  • Joined: 04-October 08
  • Location:DC, USA

Posted 01 June 2009 - 04:05 PM

You can use 1.0 branch svn copy, or temporarily rename _primaryKey to primaryKey in the error line.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users