Closed GoogleCodeExporter closed 8 years ago
由于这个缺陷,无法直接在查询中使用关联字段作为查询条�� �的一部分。
Original issue reported on code.google.com by dualf...@gmail.com on 5 May 2008 at 7:34
dualf...@gmail.com
已经实现该功能。要在查询中使用关联对象的属性做查询条�� �,需要使用 [关联名.属性名] 这样 的形式。 例如 Post has_many Comment,那么可以: Post::find('[comments.user_id] = ?', $user_id)
Original comment by dualf...@gmail.com on 25 Aug 2008 at 9:38
Original issue reported on code.google.com by
dualf...@gmail.com
on 5 May 2008 at 7:34