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

    Hi

    I am new to Akelos today. I am experimenting with record associations and seem unable to have more than one many-to-many association. Should it be possible to do something like:

    class User extends ActiveRecord
    {
        var $has_and_belongs_to_many = array('companies','groups');
    }
    
    class Group extends ActiveRecord
    {
        var $has_and_belongs_to_many = 'users';
    }
    
    class Company extends ActiveRecord
    {
        var $has_and_belongs_to_many = 'users';
    }
    

    At the moment I can only get a row in the correct link table for the first association in the array (either companies or groups but not both).

    Any help appreciated

    Cyril