chinaphp
- chinaphp 回复了话题 (译文)优化PHP代码的40条建议
下载学习
- chinaphp 发布了话题离线数据库和主数据库的同步
给力 我也下载学习。
- chinaphp 回复了话题 Yii Framework视频教程第二讲
我没回复过吗?
- chinaphp 回复了话题 关联,必须关联主表的主键吗?
谢谢您的回复,我看了一下BLOG 例子里的
return array( 'author' => array(self::BELONGS_TO, 'User', 'author_id'), 'comments' => array(self::HAS_MANY, 'Comment', 'post_id', 'condition'=>'comments.status='.Comment::STATUS_APPROVED, 'order'=>'comments.create_time DESC'), 'commentCount' => array(self::STAT, 'Comment', 'post_id', 'condition'=>'status='.Comment::STATUS_APPROVED), );
评论的关联字段是post_id 是 post的主键, 还是通过主键字段关联的。
- chinaphp 发布了话题关联,必须关联主表的主键吗?
- chinaphp 回复了话题 Jquery+js手册CHM版
谢谢分享
果然都是好东西
很好 学习了 下载试验一下看。