Hi!
I try to load an entity with some details and there is a resellerId in the entity.
Now I inherit a subclass from it, and try to access the resellerId but it's not there. How to pass the attributes to the subclasses? I really need it loaded.
Thanks!
edit:
class Crm_Entity extends Crm_Abstract {
protected $_mapper = 'Crm_Mapper_Entity';
protected $_data = array(
'customerId' => '', //done
'displayName' => '', //done
'active' => '', //done
'billingMethod' => '', //done
'debitorNumber' => null, //done
'bankAccount' => null, //done
'bankAccountTown' => null, //done
'resellerOrganisationId'=> null,
'account' => null, //done
'phonenumbers' => null, //done
'calls' => null,
'tickets' => null,
'comments' => null,
'addresses' => null,
'emailaddresses' => null, //done
'actionevents' => null
);
}
class Crm_CustomerEntity extends Crm_Entity {
//foobar not done yet
}
class Crm_Person extends Crm_CustomerEntity {
protected $_data = array(
'customerId' => null,
'firstName' => '',
'middleName' => '',
'lastName' => '',
'initials' => '',
'title' => '',
'openingWord' => ''
);
}
So I need to get the resellerId passed on to the subclass.