symfony/symfony — Issue #2473: doctrine:generate:entities not updating type of setter
Author: bhelm
Created: 2011-10-25 17:28:41+00:00
State: open

doctrine:generate:entities does not seem to update the setter from my generated class, i've reproduced it twice.

steps to reproduce:
1. add a new field to your entity.orm.yml, by accident, i used type bool instead of boolean
isCompany:
type: bool
2. execute doctrine:generate:entities
3. review the generated code, the setter looks like that, which is invalid php:
public function setIsCompany(\bool $isCompany)
4. change type from bool to boolean
5. run doctrine:generate:entities again
6. review the code again: nothing has changed, still broken code.
7. only solution is to remove the broken setter manuelly, then doctrine:generate:entities creats it correctly.

Linux 64 Bit, php 5.3.8, symfony 2.0.4.