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

    Hi,

    i am trying to implement a simple inheritance like that :

    class Vote extends ActiveRecord{}

    class VoteBook extends Vote{}

    class VoteAuthor extends Vote{}

    with only one table 'votes' (installer source code);

    $this->createTable('votes',
            'id,'.
            'user_id,'.
            'content_id,'.
           'type string (50),'.
            'created_at'
            );
    

    I have seen in the unit tests _AkActiveRecord_table_inheritance.php that when i create a new VoteBook i don't need to specify the type attribute (Akelos automatically populate it). In my case, it does'nt work.

    Any idea ?

    Francois

    • CommentAuthorKaste
     

    unit test ?