protected function addRelationChild($tableName) {
		$parameter = new ParameterGenerator();
		$parameter->setName('whereArray');
		$parameter->setDefaultValue([]);
		
		$child = new NameManager($this->getNames()->namespace, $tableName);
		
		// METHOD:getRelationChild
		$functionName = ucwords($tableName); 
		$method = $this->buildMethod("gather{$functionName}");
		$method->setParameter($parameter);
		$body = <<<MBODY
if (!is_array(\$whereArray)) {
	\$whereArray = [];
}
\$where = array_merge(['fk_{$this->getNames()->tableName}' => \$this->{$this->getNames()->primary}], \$whereArray);
\${$child->tableName} = new \\{$child->namespace_model}\\{$child->modelName}();
return \${$child->tableName}->select(\$where);
MBODY;
		$method->setBody($body);
		$tag = new ReturnTag();
		$tag->setTypes("\\Zend\\Db\\ResultSet\\HydratingResultSet");
		$docBlock = new DocBlockGenerator();
		$docBlock->setTag(new ParamTag('whereArray', ['datatype'  => []]));
		$docBlock->setTag($tag);
		$docBlock->setShortDescription("Related {$child->entityName}");
		$method->setDocBlock($docBlock);
		$this->_class->addMethodFromGenerator($method);
	}
protected function addRelationChild($tableName) {
		$parameter = new ParameterGenerator();
		$parameter->setName('whereArray');
		$parameter->setDefaultValue([]);
		
		$child = new NameManager($this->getNames()->namespace, $tableName);
		
		// METHOD:getRelationChild
		$functionName = ucwords($tableName); 
		$method = $this->buildMethod("gather{$functionName}");
		$method->setParameter($parameter);
		$body = <<<MBODY
if (!is_array(\$whereArray)) {
	\$whereArray = [];
}
\$where = array_merge(['fk_{$this->getNames()->tableName}' => \$this->{$this->getNames()->primary}], \$whereArray);
\${$child->tableName} = new \\{$child->namespace_model}\\{$child->modelName}();
return \${$child->tableName}->select(\$where);
MBODY;
		$method->setBody($body);
		$tag = new ReturnTag();
		$tag->setTypes("\\Zend\\Db\\ResultSet\\HydratingResultSet");
		$docBlock = new DocBlockGenerator();
		$docBlock->setTag(new ParamTag('whereArray', ['datatype'  => []]));
		$docBlock->setTag($tag);
		$docBlock->setShortDescription("Related {$child->entityName}");
		$method->setDocBlock($docBlock);
		$this->_class->addMethodFromGenerator($method);
	}
protected function addRelationChild ( $ tableName ) { $ parameter = new ParameterGenerator ( ) ; $ parameter -> setName ( 'whereArray' ) ; $ parameter -> setDefaultValue ( [ ] ) ; $ child = new NameManager ( $ this -> getNames ( ) -> namespace , $ tableName ) ; // METHOD:getRelationChild $ functionName = ucwords ( $ tableName ) ; $ method = $ this -> buildMethod ( "gather{$functionName}" ) ; $ method -> setParameter ( $ parameter ) ; $ body =  <<<MBODY
if (!is_array(\$whereArray)) {
	\$whereArray = [];
}
\$where = array_merge(['fk_{$this->getNames()->tableName}' => \$this->{$this->getNames()->primary}], \$whereArray);
\${$child->tableName} = new \\{$child->namespace_model}\\{$child->modelName}();
return \${$child->tableName}->select(\$where);
MBODY ; $ method -> setBody ( $ body ) ; $ tag = new ReturnTag ( ) ; $ tag -> setTypes ( "\\Zend\\Db\\ResultSet\\HydratingResultSet" ) ; $ docBlock = new DocBlockGenerator ( ) ; $ docBlock -> setTag ( new ParamTag ( 'whereArray' , [ 'datatype' => [ ] ] ) ) ; $ docBlock -> setTag ( $ tag ) ; $ docBlock -> setShortDescription ( "Related {$child->entityName}" ) ; $ method -> setDocBlock ( $ docBlock ) ; $ this -> _class -> addMethodFromGenerator ( $ method ) ; }
Create method to return related children entities
this primary key found in table

@param string $tableName
Create method to return related children entities this primary key found in table