/**
  * Load the object and its aggregates
  * @param $id object ID
  */
 public function load($id)
 {
     $this->skills = parent::loadAggregate('Skill', 'CustomerSkill', 'customer_id', 'skill_id', $id);
     $this->contacts = parent::loadComposite('Contact', 'customer_id', $id);
     // load the object itself
     return parent::load($id);
 }
Exemple #2
0
 public function load($id)
 {
     //$this->enderecos = parent::loadComposite('endereco','idpessoa');
     $this->contatos = parent::loadComposite('contato', 'idpessoa', $id);
     return parent::load($id);
 }
 public function onBeforeLoad($id)
 {
     $this->telefones = parent::loadComposite('telefone', 'clientes_id', $id);
     $this->emails = parent::loadComposite('email', 'clientes_id', $id);
 }
 /**
  * Load the object and its aggregates
  * @param $id object ID
  */
 public function load($id)
 {
     $this->contacts = parent::loadComposite('Contact', 'customer_id', $id);
     // load the object itself
     return parent::load($id);
 }