21280 Posts in 5729 Topics by 2600 members
|Go to End|
12 April 2011 at 12:54pm
I have a class ETSCustomer which decorates Member. (Actually, it's a subclass of EcommerceRole from the ecommerce module.)
It's registered like this in mysite/_config.php:
And it seems to be working properly, except that it's requireDefaultRecords() method is not being called on /dev/build.
I'm not familiar enough with SS to know how methods are dispatched on /dev/build. Anyone have any thoughts as to why my method isn't getting called?
13 April 2011 at 3:49pm
simon_w answered this for me in on the IRC channel. For archive purposes, I'll list it here:
It's because Member, which my class decorates, doesn't call parent::requireDefaultRecords() or extend('requireDefaultRecords'), so that method never gets called in the decorator. Apparently it's been fixed in SS 3.
|Go to Top|