In the Definitive Guide: Performing Relational Query,
$post=Post::model()->queryByPk(10);
method should be findByPk().
In the Definitive Guide: Performing Relational Query,
$post=Post::model()->queryByPk(10);
method should be findByPk().
Thanks! fixed.
in guide/database.dao in section Fetching Query Results there is
$dataReader=$command->query($sql);
but CDbCommand::query() doesn't have parameters.
Fixed. Thanks.