/** * getRelatedTerms * * @return KVDdom_DomainObjectCollection */ public function getRelatedTerms() { $this->checkRelations(); $it = $this->relations->getRTIterator(); $arr = array(); foreach ($it as $r) { $arr[] = $r->getTerm(); } return new KVDdom_DomainObjectCollection($arr); }
public function testGetRTIterator() { $this->object->addRelation($this->relation); $this->assertInstanceOf('KVDthes_RelationTypeIterator', $this->object->getRTIterator()); $this->assertEquals(count($this->object->getRTIterator()), 1); }