protected function createRelationshipFunction(&$stub, $relationshipName, $relationshipType, $argsString)
{
$code = "public function " . $relationshipName . "()\n\t{\n\t\t" . "return \$this->" . $relationshipType . "(" . $argsString . ");" . "\n\t}";
$str = '{{relationships}}';
$stub = str_replace($str, $code . "\n\t{$str}", $stub);
return $this;
}