Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthormsalhab
     

    Hi ;

    How can I implement self join in Ak?

    assume I have the class "Comment" and each Comment has many sub-comment :-)

    Thanks alot thanks kaste

    • CommentAuthorKaste
     

    generally you have to build the self-join with the same statements as any other association/table-relation. so to speak: a comment has_many subcomments.

    But most likely you can build the child/parent-relationship you're describing with the acts_as_tree behaviour.