Little error in documentaton

Hello in the guide "The Definitive Guide to Yii"  in the section  "Creating First Yii Application"  I found this

            'db'=>array(


            'connectionString'=>'sqlite:protected/data/source.db',


Then you explain the model and crud function but this not working. 

Is necessary to insert in CDbConnection to using AR for model and crud function.

I suggest to add this (is usefull for the MYSQL)

'db'=>array(


            'class'=>'system.db.CDbConnection',


	     'connectionString'=>'mysql:host=localhost;dbname=namedb',


            'username'=>'user',


            'password'=>'1234',


            'schemaCachingDuration'=>3600,


		), 


bye bye from Italy

What is the error message you saw?

By default, 'db' component will use class 'CDbConnection'. So you don't need to explicitly specify its class property.

Sorry.

But now is working :o… I don’t know… I’m not drunk…

I cannot replicate the error…ignore my message.

I saw this error with crud."Error: Table "nametable" does not have a primary key."…

(the table have a primary key).