Yii Framework Forum: Doc typos - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Doc typos Rate Topic: -----

#1 User is offline   Maxximus 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 146
  • Joined: 24-November 08
  • Location:Spain

Posted 10 December 2008 - 09:45 AM

In the Definitive Guide: Performing Relational Query,

$post=Post::model()->queryByPk(10);

method should be findByPk().


0

#2 User is offline   qiang 

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

Posted 10 December 2008 - 10:05 AM

Thanks! fixed.
0

#3 User is offline   robak 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 41
  • Joined: 25-November 08

Posted 16 December 2008 - 04:19 AM

in guide/database.dao in section Fetching Query Results there is


$dataReader=$command->query($sql);


but CDbCommand::query() doesn't have parameters.
0

#4 User is offline   qiang 

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

Posted 16 December 2008 - 10:06 AM

Fixed. Thanks.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

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