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'), ); } public function attributeLabels() { return array( 'authorID'=>'Author', ); } public function protectedAttributes() { return array(); } */ }