I have a Parent entity with 2 child entities (Foo and Bar) implementing SINGLE_TABLE inheritance.
Is it possible to create a new Parent() entity and dynamically set it’s discriminator to foo instead of creating a new Foo() ?
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, there isn’t, if you really need the scenario mentioned in your comment, then you’ll probably be better with some kind of factory method: