Quantcast
Viewing latest article 18
Browse Latest Browse All 41

Soulis on SubSonic magic

I didnt mean to imply that this change is incompatible with future versions. I did override the templates directory. Here's what happens:

I change the CS, ODS controller template to inherit from SubSonicController<AbstractRecord,AbstractList> as directed above.
Upon generation, table classes get gen'd to the tune of Region:ActiveRecord, and RegionCollection: ActiveList<Region,RegionCollection>
Now the debugger will complain that RegionController : SubSonicController<Region, RegionCollection> , expects an AbstractRecord, not an ActiveRecord.

And I wonder what I did wrong (I can overcome the debugger error by changing the SubSonicController class definion to accept ActiveRecord as opposed to AbstractRecord, but Im not sure if Im fixing something or getting deeper in trouble, just so that I can satisfy the debugger).

Overall thanks for the inspiring article, and the overall blog listings are trully helpfull and sometimes entertaining.

Viewing latest article 18
Browse Latest Browse All 41

Trending Articles