public function getTargetDefinition() {
		if($this->targetDefinition)
			return $this->targetDefinition;

		if(isset($this->params['entities']))
			$entityClass = $this->params['entities'][0];
		else
			$entityClass = $this->params['entity'];

		return $this->definition->getEntityManager()->get($entityClass);
	}