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

    I'm evaluating Akelos for a project I want to do. Has anyone written an adapter for Sybase or MS SQL already?

    Also, how do you tell a model to connect to a different database configuration? I see establishConnection in the Base model code, but I'm unsure of how to use it.
    Any help would be appreciated.
    • CommentAuthorKaste
     

    If you need two different configurations at one time there's a small patch needed right now. establishConnection is not needed to connect to a self-made adapter, though. Right now ActiveRecord automatically chooses the Adapter class automatically by evaluating the type-parameter in the configuration file.

    after all usage would be ->establishConnection('development') or a differnet key defined in config/config.php