views:

119

answers:

1

Hi,

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.

+1  A: 

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

Haim Evgi
Thanks this helped me out. In the comments there was a link to a class that makes it possible to still use YAML fixtures. https://gist.github.com/9a677147c42e5fed7d05
Skelton
I was glad to hear:)
Haim Evgi