This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Customize entities generation for Doctrine

Requests for new symfony features.

Customize entities generation for Doctrine

by slavafomin » Sun Oct 07, 2012 2:39 pm

Hello there!

It would be a nice feature to customize generation of "setters" and "getters", when using:

Code: Select all
php ./app/console doctrine:generate:entities ...

For example: i would love to completely protect some class parameters from outside world, so they can be accessed only through specific methods. But automation script will keep generating getter and setter methods for them. I know you can create empty methods, or throw not implemented exception in them, but it's no good from the perspective of code cleanliness and IDE auto-completion. It is also a pain to remove this auto-generated methods after every call to "doctrine:generate:entities".

Thanks! ;)
Let's make this World a Better place!
User avatar
Junior Member
Posts: 5
Joined: Sun Oct 07, 2012 2:30 pm
Location: Moscow, Russia