function getAffiliates() { $affDao = new BaseDao("Affiliate"); $affExample = $affDao->getPattern(); $this->affiliates = $affDao->searchWhere($affExample, "editor=" . $this->id); return $this->affiliates; }