symfony/symfony-docs — pull request #3934 by cmodijk (2014-06-11 09:58:20+00:00)
Title: Move __construct after the repository assignment

The configure function is called from the parent::__construct(); so the $this->nameRepository is still empty during the configure. Thats why it should be the other way around.