i wonder if the yaml files for creating models in Doctrine 2 are the same as those in Doctrine 1.2?
+1
A:
No they are not the same. You can check the new syntax in the doctrine documentation.
Note that annotation seems to be the prefered way to map entities in Doctrine 2 (see annotation reference and basic mapping).
Edit: seems like there is a tool converting Doctrine 1.x schema to Doctrine 2 schema. I can't test here right now but you can try it. See documentation here.
doctrine orm:convert-d1-schema
DuoSRX
2010-04-21 11:58:30
but im using mysql workbench with doctrine plugin. it creates yaml files only. then i have to create the models from the yaml files. that seems to be the only way. i dont quite enjoy to create 20-50 tables without GUI like workbench. is there a way to get this to work with Doctrine 2.0? and what is the class and function for creating models from yaml files? I cant find it in the documentation. in 1.2 it was (i think) Doctrine_Core::create_models_from_yaml()
never_had_a_name
2010-04-21 14:44:08
I edited my answer. Also note that Doctrine 2 is still in early alpha stage and as such still lack useful tools.
DuoSRX
2010-04-21 15:00:43
ok i guess its better for me to stick with Doctrine 1.2 after all and switch back to 2.0 in a year or so=)
never_had_a_name
2010-04-21 20:12:54