Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorfrancois
    • CommentTimeMar 24th 2008
     

    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
    • CommentTimeApr 17th 2008
     

    unit test ?

Add your comments
    Username Password
  • Format comments as