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

    I noticed that file database.yml created with rakefile (I used standard ruby yaml library) works pretty well but only in relation to standard connections conducted by models ... But it is not the case with AkUnitTest ... When I tried to run first of my tests I got following errors :


    Notice: Undefined index: type in /home/sylwek/programming/my_mvc/akelos_framework/lib/AkActiveRecord/AkDbAdapter.php on line 124

    Notice: Undefined index: type in /home/sylwek/programming/my_mvc/akelos_framework/lib/AkActiveRecord/AkDbAdapter.php on line 170

    Notice: Undefined index: user in /home/sylwek/programming/my_mvc/akelos_framework/lib/AkActiveRecord/AkDbAdapter.php on line 171

    Notice: Undefined index: password in /home/sylwek/programming/my_mvc/akelos_framework/lib/AkActiveRecord/AkDbAdapter.php on line 171

    Notice: Undefined index: database_name in /home/sylwek/programming/my_mvc/akelos_framework/lib/AkActiveRecord/AkDbAdapter.php on line 174 Missing file: /home/sylwek/programming/my_mvc/akelos_framework/vendor/adodb/drivers/adodb-://.@localhost/.inc.php ADONewConnection: Unable to load database driver Fatal error: Connection to the database failed. ://:@localhost/

    /home/sylwek/programming/my_mvc/akelos_framework/lib/AkActiveRecord/AkDbAdapter.php on line 68

    After looking into the issue and libraries involved I noticed that my database parameters had not been read correctly ... So I swapped my rake-created file for the one created by Akelos in the beginning ...

    This works as expected but the fact is that there is some sort of inconsistence between loading database yaml for models and loading them for the same models during running tests ... which makes scripting certain tasks more difficult in case of Akelos ...