Maison  >  Article  >  développement back-end  >  thinkPHP联系关系模型中condition属性

thinkPHP联系关系模型中condition属性

WBOY
WBOYoriginal
2016-06-13 10:34:031392parcourir

thinkPHP关联模型中condition属性
刚看thinkPHP不久有个问题想问下,在thinkPHP关联模型有个condition 关联条件 
API上说

XML code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->关联查询的时候会自动带上外键的值,如果有额外的查询条件,可以通过定义关联的condition属性。

我想知道这个属性可不可以动态改变 关联条件?

------解决方案--------------------
我速度的来了
------解决方案--------------------
4楼你是什么都不会吗?那个页面都有你,答案无关风月。
------解决方案--------------------
来个人接分啊~~~速度了~~
Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn