public function componentFromPart($part) { print_r($this); exit; foreach ($this->type->config->toArray() as $aComponent) { if ($part == $aComponent->part) { $ret = Blerby_Entity_Component::factory($aComponent->uri); $ret->fromArray($aComponent); return $ret; } } }