On Jul 7, 6:22 pm, Alexander Dergachev <
cy6erbr...@gmail.com> wrote:
> OK, I guess, now I understand what you meant. You're going to create tree
> structure for your forum, and you're going to create "sub-sub-forum", aren't
> you? And as I understood, you were trying to use the same table for the all
> sub forums, weren't you? I guess it's impossible, and my suggestion is to
> create separate tables for every "layer" of your forum tree (main forum
> (table1) -> sub-forum layer 1 (table2) -> sub-forum layer 2 (table2) and so
> on).
>
> If somebody knows any other ways for this purpose, it would be good to see.
>
> Thanks.
>
> /Regards,
> Alexander
>
> On Tue, Jul 7, 2009 at 8:27 PM, Alexander Dergachev <
cy6erbr...@gmail.com>wrote:
>
>
>
> > I'm not quite sure I understood you right. Where are you going to use it?
>
> > relation()->
> > [{many_to_one, [forum]},{one_to_many, [forum]}].
>
> > Where do you need to use it?
>
> > May be it would be more easy to help you if you show some code
> > examples you're going to use in your application.
>
> > On 7/7/09, Hao Chi Kiang <
takayoshi.k...@gmail.com> wrote:
>
> > > 2009/7/7 Alexander Dergachev <
cy6erbr...@gmail.com>
>
> > >> Hi. If I got it right, then I don't see any problem :)
>
> > >> As I understood the concept of subforums, any forum can have some
> > >> number of subforums, but is it really case one subforum may be placed
> > >> in more them one forum? Do we really need many-to-many relation?
>
Yes, that's what I mean. And sorry for my bad English.
Well, I'll try your suggestion. Thanks again.