My problem is I can not find if it is somehow possible to specify a field to be transient.
I know that in java (JPA) you can specify it this way:
@Transient int transient;
There is a similar method in Doctrine2?
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.
Each field on an entity that doctrine persists must be explicitly mapped (e.g., with annotations or YAML). If you don’t want a field on an entity to be persisted then don’t add any doctrine mapping for it: