1

次の場合:

'with'=>array('pros.comments', 'cons.comments')

「コメント」を明確にする解決策は次のとおりです。

'with'=>array('pros.comments', 'cons.comments'=>array('alias'=>'con_comments'))

しかし、次の 3 つのレベルがある場合はどうなるでしょうか。

'with'=>array('pros.comments.author', 'cons.comments.author')

??? コメントと著者の両方を明確にする方法は?

前もって感謝します

4

1 に答える 1

2

これを試して

'with'=array('pros.comments'=>array('alias'=>'pros_comments','with'=>array('author'=>array('alias'=>'pros_comments_author'))),'cons.comments'=>array('alias'=>'cons_comments','with'=>array('author'=>array('alias'=>'cons_comments_author'))))
于 2012-05-14T08:15:38.833 に答える