[TYPO3-mvc] netbeans and factory object type hints / code completion
Marc Bastian Heinrichs
typo3 at mbh-web.de
Tue May 18 18:58:18 CEST 2010
Hi Stephan,
Am 18.05.10 18:08, schrieb Stephan Petzl:
> the last line in the action overrides the original type hint, i guess,
> so the code competion on $this->frontendUserRepository-> doesnt bring
> any results...
>
> any ideas what i could do?
not very nice, but should work:
---------------------------.
public function initializeAction() {
$this->frontendUserRepository = $this->getFrontendUserRepository();
}
/**
* @return Tx_AjadoProfiles_Domain_Repository_FrontendUserRepository
*/
protected function getFrontendUserRepository() {
return
t3lib_div::makeInstance('Tx_AjadoProfiles_Domain_Repository_FrontendUserRepository');
}
----------------------------
Regards,
Marc Bastian
More information about the TYPO3-project-typo3v4mvc
mailing list