hasColumn('name', 'string', 32); $this->hasColumn('user_id', 'integer', 11); $this->hasColumn('app_category_id', 'integer', 11); } public function setUp() { $this->hasOne('User', 'User.id'); $this->hasMany('App_Category as Category', 'App_Category.id'); } }