Property "CMysqlTableSchema._primaryKey" is not defined

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?

Thanks! Fixed.

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

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