mikl
(Mike)
December 9, 2008, 1:34pm
1
Just a minor improvement: To be consistent with the note in the Yii guide, the created CRUD classes should also use CamelCase in the relations example:
public function relations()
{
return array(
'author'=>array(self::BELONGS_TO, 'User', 'authorId'),
'comments'=>array(self::HAS_MANY, 'Comment', 'postId', 'with'=>'author', 'order'=>'createTime DESC'),
'tags'=>array(self::MANY_MANY, 'Tag', 'postTag(postId, tagId)', 'order'=>'name'),
);
}
mikl
(Mike)
December 9, 2008, 1:47pm
3
Really quick, thanks
I hope you don't find it too nitpicking … i just post what i find during my first steps in Yii.
qiang
(Qiang Xue)
December 9, 2008, 1:50pm
4
Not at all. You are very welcome to point out any bugs or fixes needed.
mikl
(Mike)
December 9, 2008, 1:54pm
5
Ok, then i’ll proceed.
I'll not open tickets for small stuff like this, if that's o.k. for you.