protected function makeDefinition($entityClass) {
		if($this->has($entityClass))
			return $this->definitions[$entityClass];

		$HookManager = $this->getHookManager();
		$definition = false;
		if($cache = $this->getCache())
			$definition = $cache->fetch('asgard.entityManager.'.$entityClass.'.definition');
		if($definition === false)
			$definition = new Definition($entityClass, $this, $HookManager);
		$definition->setEntityManager($this);
		$definition->setGeneralHookManager($HookManager);

		$this->definitions[$entityClass] = $definition;

		return $definition;
	}
protected function makeDefinition($entityClass) {
		if($this->has($entityClass))
			return $this->definitions[$entityClass];

		$HookManager = $this->getHookManager();
		$definition = false;
		if($cache = $this->getCache())
			$definition = $cache->fetch('asgard.entityManager.'.$entityClass.'.definition');
		if($definition === false)
			$definition = new Definition($entityClass, $this, $HookManager);
		$definition->setEntityManager($this);
		$definition->setGeneralHookManager($HookManager);

		$this->definitions[$entityClass] = $definition;

		return $definition;
	}
protected function makeDefinition ( $ entityClass ) { if ( $ this -> has ( $ entityClass ) ) return $ this -> definitions [ $ entityClass ] ; $ HookManager = $ this -> getHookManager ( ) ; $ definition = false ; if ( $ cache = $ this -> getCache ( ) ) $ definition = $ cache -> fetch ( 'asgard.entityManager.' . $ entityClass . '.definition' ) ; if ( $ definition === false ) $ definition = new Definition ( $ entityClass , $ this , $ HookManager ) ; $ definition -> setEntityManager ( $ this ) ; $ definition -> setGeneralHookManager ( $ HookManager ) ; $ this -> definitions [ $ entityClass ] = $ definition ; return $ definition ; }
Make a new entity definition.
@param  string $entityClass
@return Definition
Make a new entity definition .