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);
	}
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);
	}
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 ) ; }
Return the target entity definition.
@return \Asgard\Entity\Definition
Return the target entity definition .