I’ve been trying to test a model in a Symfony2 project, but I don’t know how to get the entity manager to save and retrive records.
Can anyone point me to the right docs for this?
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.
In order to test your models, you can use setUp() method. link to docs
Hope this helps you