【发布时间】:2012-05-14 06:20:13
【问题描述】:
以下情况:
'with'=>array('pros.comments', 'cons.comments')
消除“cmets”歧义的解决方案是:
'with'=>array('pros.comments', 'cons.comments'=>array('alias'=>'con_comments'))
但是如果我有三个层次呢:
'with'=>array('pros.comments.author', 'cons.comments.author')
???如何同时消除 cmets 和 author 的歧义?
提前致谢
【问题讨论】:
标签: php activerecord orm yii relational-database