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.
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
There are now data fixtures for Doctrine 2: https://github.com/doctrine/data-fixtures
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With