我使用K3的ORM查询数据库,但是要对一个字段的两种结果进行查询。如 where lid=20 or lid=10 不知道这种该怎样实现呢
where()->or_where()
后来才发现,连续使用 where() 也是允许的,kohana 会自动判断并帮你替换为 and_where()
Post new reply