Using Symfony2.0, I know well how to use the command doctrine:generate:entities to generate getters and setters.
The question: is there any annotation, parameter or so to make the command ignore some property which I don’t need the methods for?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No. The generator is meant to be used to start quickly — not to do your coding job. So, generate an entity and then remove whatever you don’t need.