Does anybody can get me started on using fixtures in doctrine 2? In doctrine 1 this was easy. But in the doctrine 2 documentation there’s nothing I can find about fixtures.
Thanks.
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.
YAML data fixtures no longer exist in Doctrine 2.
you can use use regular PHP code to load data fixtures.
see this link
http://www.symfony-project.org/blog/2009/10/05/symfony-and-doctrine-2