protected function addRelationParent($columnName) {
		$table = substr($columnName, 3);
		$parent = new NameManager($this->getNames()->namespace, $table);
		// METHOD:getRelationParent
		$method = $this->buildMethod("fetch{$parent->entityName}");
		$body = <<<MBODY
\${$parent->tableName} = new \\{$parent->namespace_model}\\{$parent->modelName}();
return \${$parent->tableName}->get{$parent->entityName}(\$this->{$columnName});
MBODY;
		$method->setBody($body);
		$tag = new ReturnTag();
		$tag->setTypes("\\{$parent->namespace_entity}\\{$parent->entityName}");
		$docBlock = new DocBlockGenerator();
		$docBlock->setTag($tag);
		$docBlock->setShortDescription("Related {$parent->entityName}");
		$method->setDocBlock($docBlock);
		$this->_class->addMethodFromGenerator($method);
	}
protected function addRelationParent($columnName) {
		$table = substr($columnName, 3);
		$parent = new NameManager($this->getNames()->namespace, $table);
		// METHOD:getRelationParent
		$method = $this->buildMethod("fetch{$parent->entityName}");
		$body = <<<MBODY
\${$parent->tableName} = new \\{$parent->namespace_model}\\{$parent->modelName}();
return \${$parent->tableName}->get{$parent->entityName}(\$this->{$columnName});
MBODY;
		$method->setBody($body);
		$tag = new ReturnTag();
		$tag->setTypes("\\{$parent->namespace_entity}\\{$parent->entityName}");
		$docBlock = new DocBlockGenerator();
		$docBlock->setTag($tag);
		$docBlock->setShortDescription("Related {$parent->entityName}");
		$method->setDocBlock($docBlock);
		$this->_class->addMethodFromGenerator($method);
	}
protected function addRelationParent ( $ columnName ) { $ table = substr ( $ columnName , 3 ) ; $ parent = new NameManager ( $ this -> getNames ( ) -> namespace , $ table ) ; // METHOD:getRelationParent $ method = $ this -> buildMethod ( "fetch{$parent->entityName}" ) ; $ body =  <<<MBODY
\${$parent->tableName} = new \\{$parent->namespace_model}\\{$parent->modelName}();
return \${$parent->tableName}->get{$parent->entityName}(\$this->{$columnName});
MBODY ; $ method -> setBody ( $ body ) ; $ tag = new ReturnTag ( ) ; $ tag -> setTypes ( "\\{$parent->namespace_entity}\\{$parent->entityName}" ) ; $ docBlock = new DocBlockGenerator ( ) ; $ docBlock -> setTag ( $ tag ) ; $ docBlock -> setShortDescription ( "Related {$parent->entityName}" ) ; $ method -> setDocBlock ( $ docBlock ) ; $ this -> _class -> addMethodFromGenerator ( $ method ) ; }
Create method to return related Parent entity
linked to foreign key stored in this coloumn

@param string $columnName
Create method to return related Parent entity linked to foreign key stored in this coloumn