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
unit test ?
1 to 2 of 2