Doctrine Projecthttp://www.doctrine-project.org/jira
This file is an XML representation of an issueen-us6.2.3626015-04-2014[DC-789] Better documentation for the generated getInstance method in generated *Table.class.php fileshttp://www.doctrine-project.org/jira/browse/DC-789
Doctrine 1<p>As stated in <a href="http://www.doctrine-project.org/jira/browse/DC-518" class="external-link" rel="nofollow">DC-518</a> the getInstance method is added in table classes generated by Doctrine 1.2.2. The problem is, that the word order is wrong for the parameter keyword to support auto completion in IDEs. At least the NetBeans IDE is not able to use this information properly.</p>
<p>As it is common to expect phpDocumentor comment syntax, the first word after the @param keyword specifies the type, which is in the current version <cite>object</cite>. It would be really helpful if the current form could be changed from</p>
<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Doctrine/Import/Builder.php:1077</b></div><div class="codeContent panelContent">
<pre class="code-java">* @<span class="code-keyword">return</span> object %s
</pre>
</div></div>
<p>to</p>
<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Doctrine/Import/Builder.php:1077</b></div><div class="codeContent panelContent">
<pre class="code-java">* @<span class="code-keyword">return</span> %s
</pre>
</div></div>
<p>as it was propossed in the above mentioned issue.</p>Symfony 1.4.6 with Doctrine 1.2.2 on Debian Linux 5.0DC-789Better documentation for the generated getInstance method in generated *Table.class.php filesImprovementMajorOpenUnresolvedJonathan H. WageChristoph BergFri, 16 Jul 2010 03:02:11 +0000Fri, 16 Jul 2010 03:02:11 +00001.2.2Import/Export22